0
The input tag
I understand that the input tag doesn’t have an end, but why is the “/“ missing in this code for the input tag??
3 Respostas
+ 7
That "/" at the end is completely optional, you can use it or not it doesn't make difference.
It's better to have it as indication that this is self closing tag.
+ 4
Rick is right, self-closing tags or unpaired tags doesn't necessarily be using the / (slash character). Except you used XHTML DTD, where it is necessary.
If you used XHTML DTD you will get a warning when validating the page against XHTML convention.
You can check your page at https://validator.w3.org/ to see how your page qualifies a certain standard 👍
+ 2
Thanks Rick