Fandom

HTML & CSS Wiki

Div

649pages on
this wiki
Add New Page
Comments0 Share


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.

AttributesEdit

Global attributesEdit

See Global HTML Attributes.


HTML example:

<div>TEXT TEXT TEXT</div>

SupportEdit

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

External linksEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.