Ends in 0d:00h:00m:00s

Buy 1 year, 🎁 Gift 1 year — completely FREE

Split the cost with a friend. You both get 12 months for $99.

Start FREE trial
Background Image

Buy 1 year, Gift 1 year — completely FREE

Start FREE trial
David Imeh
last year
Davidcountry asked

Why does the input in this case having an ending tag (/>) ??

Abhay Jajodia
Expert
last year
Abhay Jajodia answered

So when you see something like , that little / just means the tag is self-closing — it doesn’t need an end tag like .

But guess what? Starting with HTML5, you don’t even need the / anymore. You can just write:




And it works the same! Super simple. 👍

HTML
This question was asked as part of the Learn HTML course.