+ 1

What are void elements in html

31st Jul 2016, 1:38 PM
Habibllahi Ewedairo
Habibllahi Ewedairo - avatar
2 odpowiedzi
+ 2
lol void element is any element that can not, by definition, have any content in between the start and end tags, but the only type of data that void elements are allowed to have are attributes. Some examples of void elements that you are probably already familiar with include the img (image), br (break), hr (horizontal rule), and meta tags. Of course, all of the tags that we mentioned can have attributes, but the reason they are void elements is that you will never see any content in between a start and end tag for a void element – so something like www.somesite.com/animage.png, or some meta info here would be invalid and would not make any sense anyways since you can put all of that information in the atrributes of those tags.
31st Jul 2016, 3:22 PM
igboke
igboke - avatar
+ 1
you must ask avatar the legend of aang and you will get the answer
31st Jul 2016, 2:42 PM
thagut kafir
thagut kafir - avatar