HTML Form How to - Set multiple line place holder








Question

We would like to know how to set multiple line place holder.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
textarea {<!--  ww w . j a  v a2  s .c om-->
  width: 250px;
  resize: none;
}
</style>
</head>
<body>
  <textarea rows="6" 
            id="googleAddress" 
            name="" type="text"
    placeholder="My Awesome House,
1 Main St
New York
POSTCODE
UK"></textarea>
</body>
</html>

The code above is rendered as follows: