You are here : htmlHTML 5div

<div> - HTML 5

The <div> tag defines a division or a section in an HTML document.

The <div> tag is used to group block-elements to format them with CSS.


Syntax

<div style="color:#0000FF">  <h3>This is a heading</h3>  <p>This is a paragraph.</p></div>


Example

<div style="color:#0000FF">  <h3>This is a heading</h3>  <p>This is a paragraph.</p></div>


Output / Return Value


Limitations


Alternatives / See Also


Reference