Grant Hood
Grant Hood

Reputation: 71

Why the input not on the next line down

<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

Answers (2)

Sazz
Sazz

Reputation: 119

Add br tag after label tags to bring your input to the next line.

Upvotes: 1

Sachith Muhandiram
Sachith Muhandiram

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

Related Questions