▶Browser Support
The
tag is supported in all major browsers.
▶Definition and Usage
The
tag defines a division or a section in an HTML document.
The
The
tag is used to group block-elements to format them with styles.
▶Tips and Notes
Tip: The
element is very often used together with CSS, to layout a web page.
Note: Browsers always place a line break before and after the
Note: Browsers always place a line break before and after the
element.
Attribute | Value | Description | Example |
align | left right center justify | Specifies the alignment of the content | align=center |
background-color | HEX color | Specifies the color of the background | background-color: yellow; background-color: #c0c0c0; |
class | classname | Specifies a classname for an element | class="background" |
style | style_definition | Specifies an inline style for an element | style="color:#00FF00" |