Div
Talk6
645pages on
this wiki
this wiki
| Div | |
| Basic usage: | |
| |
| 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.
Attributes
Edit
Global attributes
Edit
HTML example:
<div>TEXT TEXT TEXT</div>