Reputation: 71
<label for="email">Insert Email</label>
<input type="text" name="email" id="email" placeholder="eg. [email protected]">
<label for="phone">Telephone</label>
<input type="text" name="phone" id="phone" placeholder="eg.0123456789">
Why is this not working? It is messed up.
Upvotes: 1
Views: 196
Reputation: 2972
To get proper looking you need to insert them inside a <form>
tag. If you just need a break, you can use <br>
.Not JavaScript.
<form>
<input type="text" name="email" id="email" placeholder="eg. [email protected]">
<br>
<label for="phone">Telephone</label>
<input type="text" name="phone" id="phone" placeholder="eg.0123456789">
</form>
You can get more about this matter by referring this W3School tutorial.
Upvotes: 0