I am replicating a page, and wanted to know if I need to indent the form
tag, if it is nested inside of a div
tag. e.g.
<div class="signup-form">
<form method="post">
<input type="text" value="First Name">
<input type="text" value="Last Name">
</form>
Or do I write it without the indentation. e.g.
<div class="signup-form">
<form method="post">
<input type="text" value="First Name">
<input type="text" value="Last Name">
</form>
Thank you in advance.
Indentation in HTML does not matter, it is purely for readability.
For readability, in your example, I would indent.
I would indent because the
form
tag is contained within thediv
tag.