Wikia

Div

Talk6
645pages on
this wiki
Div
Basic usage:
<div>Lorem Ipsum</div>
Spec version 1.0
IE Version 1.0
Firefox 1.0
Google Chrome 1.0
Safari 1.0
Opera 1.0
Example output:
Text before and after this element will be forced onto its own line.

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>

External linksEdit

Advertisement | Your ad here

Photos

Add a Photo
233photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki