What are void elements? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What are void elements?

6th Oct 2016, 9:14 AM
Master Coder
Master Coder - avatar
2 Answers
0
Some elements contain text or other elements. Like <DIV>, <A> and so on. Some are meant not co contain any. Like <BR /> or <INPUT />. They don't have ending tags. In standard xhtml and above, you should end such tag-s with />
6th Oct 2016, 10:04 AM
Zoltán Zörgő
Zoltán Zörgő - avatar
0
the tag with starting tag but not with ending tag is called void elements
29th Nov 2016, 3:30 AM
dgmohana
dgmohana - avatar