IIRC single HTML tags like input can be written as <input> or <input />. I'm just wondering which form is considered "proper" HTML.
|
| |||||
feedback
|
closed as off topic by slhck, Linker3000, ChrisF, Phoshi, nhinkle♦ Sep 1 '11 at 21:25
Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.
| |||||||||
feedback
|
|
See the HTML 5 specification:
So if you are using one of the defined void elements of the HTML syntax, you can omit the / character. I usually put it for readability purposes, so you don't look for a corresponding closing tag. However, both versions are valid. | |||
|
feedback
|
|
| |||
feedback
|