HTML & CSS Wiki
Advertisement

The HTML <div></div> element, or division, does not affect the presentation of its contents in any way, other than the consequences of its block-level status. This makes it very useful for custom CSS styles, and it is the primary component of a tableless layout. Its inline counterpart is the <span></span> element.

Attributes[]

Global attributes[]

See Global HTML Attributes.


HTML example:

<div>TEXT TEXT TEXT</div>

Support[]

Internet ExplorerIElogo1.0
FirefoxFFlogo1.0
ChromeChromelogo1.0
SafariSafarilogo1.0
OperaOperalogo1.0

External links[]

Advertisement