0d: 00h: 00m: 00s

🎁 Get 3 extra months of learning — completely FREE

That's 90 extra days to master new skills, build more projects, and land your dream job.

Become a PRO
Background Image

🎁 Get 3 extra months of learning completely FREE

Become a PRO
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.