HTML Div Tag

HTML Div Tag

HTML Div Tag

Example:
<div style="color:red">
<h1>First item</h1>
<h3>Second item</h3>
<p>Third item</p>
</div>
Run Code »

Run the code to see the effect.

Example:
<div style="background-color:lightblue">
<p>First item</p>
<p>Second item</p>
<p>Third item</p>
</div>
Run Code »

Run the code to see the effect.

Example:
<div style="text-align:right; background-color:lightblue;">
<a href="#">HOME</a> | <a href="#">CONTACT</a> | <a href="#">ABOUT</a>
</div>
Run Code »

Run the code to see the effect.


HTML Div Tag in Hindi

Best Use:360p or more (480p or 720p)