Input foam

What are different


<input type="text" name="name">
<input type="text" name="email">
<input type="text" name="username">


With the (if I use a dreamweaver, the codes will be create )


<input type="text" name="name" />
<input type="text" name="email" />
<input type="text" name="username" />

Who is the true code can be used?

The first of those is the HTML syntax and the second is XHTML.

Which you get from Dreamweaver depends on which doctype you have it set to use.