Why you use / in the end of input tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why you use / in the end of input tag?

21st Aug 2016, 5:15 AM
ioannup
ioannup - avatar
8 Answers
+ 4
it's the way how system declare that code for close! if u typ <html> that mean u telling to the system to do something. when u typ </html> that mean u telling to the system stop the previous action now.
23rd Aug 2016, 3:09 PM
Ashan Madushanka
Ashan Madushanka - avatar
+ 1
it represents the closing of the tag
21st Aug 2016, 5:31 AM
Manthan Patil
Manthan Patil - avatar
+ 1
it is a standardisation,every tag has its own meaning ,so the contents you write in the code are valid only when you write them in tags b/w opening tag and closing tag
21st Aug 2016, 6:05 AM
Manthan Patil
Manthan Patil - avatar
0
but why?
21st Aug 2016, 5:58 AM
ioannup
ioannup - avatar
0
Basically part of agreed html syntax tells browser it is an ending tag
21st Aug 2016, 7:34 AM
David
0
b'cause,if you won't end the control that a specific tag has..its not a proper syntax.. you see it's predifined syntax..we can't modify or alter it.
21st Aug 2016, 11:48 AM
sushant
sushant - avatar
0
though v don't use it ,d code wht v write works out
21st Aug 2016, 3:45 PM
Akhila Chowdary
Akhila Chowdary - avatar
0
it's the syntax of input tag
4th Sep 2016, 6:40 AM
Dheeraj Thodupunoori
Dheeraj Thodupunoori - avatar