<div> Tag
<div> tag is used to define a section in the document. You can design a specific section in the document using <div> tag.
Example:
<div class="country">
<h2>USA
</h2>
<p>USA is a beautiful country.
</p>
</div>
<div class="country continent">
<h2>Australia
</h2>
<p>Australia is a beautiful country.
</p>
</div>
<div class="country">
<h2>China
</h2>
<p>China is a beautiful country.
</p>
</div>
Run Example
Browser Support
Tag |
Firefox |
Chrome |
IE |
Opera |
Safari |
<div> |
Yes |
Yes |
Yes |
Yes |
Yes |