<input> element

In this book i'm reading about HTML they have input elements as self-closing tags. I tested in my script editor that removing the / at the end of a self-closing tag does nothing to the visual output.

Do <input> elements only require a self closing tag or in this case can just be structured like an opening tag, with no closing tag.


Adding photo of <input> elements being displayed like an opening tag and a self-closing tag for clarification.

submitted by /u/muddimids

Source link

Write A Comment