W3Schools writes: > The <div> tag defines a division or a section in an HTML document. From a semantic perspective this is not true or it's at least misleading. <div> does not define a section or division, that's what <section> or <article> is for.
The MDN article in contrast calls a div a "generic container" and has a disclaimer that says. > The <div> element should be used only when no other semantic element (such as <article> or <nav>) is appropriate.
And while W3Schools does not say "div is a cool box", they instead write "Any sort of content can be put inside the <div> tag!", which...yeah.
The point, as many others have offered in this thread but those set on hating W3Schools at all costs are determined to ignore, is that they provide a succinct explanation of web technologies for the relative layman. Its existence doesn't detract from MDN or any other resource, meanwhile it provides a demonstrable service. That seems like an odd crime to warrant strawmen attacks.
> The <div> tag defines a division or a section in an HTML document.
> The <div> tag is used as a container for HTML elements - which is then styled with CSS or manipulated with JavaScript.
> The <div> tag is easily styled by using the class or id attribute.
That's a succinct, factual description of its definition and basic functions. What's wrong with that?