HTML - Div element (no meaning)

About

The div element has no special meaning at all. It's a generic content.

The div element is an element of last resort, for when no other element is suitable to apply a semantic

If you want to organize a text in logical unit, you should use the section element

The div elements can be useful for:

See also: CSS - Block container box

Rendering

div elements are rendered as block boxes.

Documentation / Reference





Discover More
HTML - Span element

The span element is a generic wrapper for phrasing content that by itself does not represent anything. Span doesn't have explicit attributes. Span is then handy to use: as placeholder for Javascript...



Share this page:
Follow us:
Task Runner