About empty tag/s | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

About empty tag/s

What is the reason behind on why they put slash on empty tags?

23rd Aug 2016, 12:24 AM
Jojellyn Villanueva
Jojellyn Villanueva - avatar
3 Answers
0
empty tags are unpaired tags such as <br> and <hr>. and i found the answer, it is because of xhtml 😄
23rd Aug 2016, 6:48 AM
Jojellyn Villanueva
Jojellyn Villanueva - avatar
0
slash </..> ends the tags or etc
30th Aug 2016, 8:17 PM
ᕮᕼᔕᗩᘉ Agario
ᕮᕼᔕᗩᘉ Agario - avatar
- 1
i didnt see any enpty tags in html... the slash (/) is use to represent the end tag of any tag has been used. like, for <html>, there </html>
23rd Aug 2016, 6:19 AM
Nick
Nick - avatar