2 ms·
People think that the <div> tag is a meaningless generic block-level element — that's pretty much how it's described in the HTML 4 and 5 specs. In fact it was
by perilunar 8y ago
People think that the <div> tag is a meaningless generic block-level element — that's pretty much how it's described in the HTML 4 and 5 specs.
In fact it was introduced in HTML 3.0 as "The DIV element is used with the CLASS attribute to represent different kinds of containers, e.g. chapter, section, abstract, or appendix." [1]
It was retained in HTML 3.2 as "DIV elements can be used to structure HTML documents as a hierarchy of divisions" [2], making it equivalent to the current <header>, <footer> and <section> tags.
1. https://www.w3.org/MarkUp/html3/divisions.html https://www.w3.org/MarkUp/html3/divisions.html
2. https://www.w3.org/TR/2018/SPSD-html32-20180315/#div https://www.w3.org/TR/2018/SPSD-html32-20180315/#div