Menu Home

div

osbo.com | HTML | Elements | div

The div HTML element represents a generic container for flow content that by itself does not represent anything.

Syntax

HTML

<div attribute-name="attribute-value"></div>

Attributes

Global

CSS

div {
    display: block;
}

Examples

CSS

Web Hypertext Application Technology Working Group (WHATWG)