<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.

https://preview.redd.it/n99dbv8iizs51.png?width=525&format=png&auto=webp&s=590523ca594ca304825095e2e095acf6c42b470e

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

submitted by /u/muddimids
[comments]



Source link

Write A Comment