You are here: Home > HTML Reference > Elements > div element
Usage
HTML 5 says, "The div
element represents nothing at all. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements."
Attributes
- align
- clear
- cols
- gutter
- height
- nowrap
- width
- common attributes
Browser compatibility
Compatibility table legend
| Test | IE8 | IE7 | IE6 | FF3 | FF2 | Saf3 | Op9 | Chrome | |:---------|:--------|:--------|:--------|:--------|:--------|:---------|:--------|:-----------| | appears in DOM | Y | Y | Y | Y | Y | Y | Y | Y | | applies style | Y | N | N | Y | Y | Y | Y | Y |