Last Updated on April 26, 2023 by Roshan Parihar
HTML div tag is used inside webpages to show divisions among content.
The div is considered as a container inside web pages. These containers are the divided sections to show contents.
Syntax
1 |
<div>put division content here...</div> |
HTML div tag specifies the large blocks of content while span tag specifies the small block of content.
1 2 3 |
<div> This is div content </div> |
Output
This is div content
You should also read:
- HTML span tag and
- HTML section tag
Resources and References HTML div tag
1. W3C Specification.
2. HTML living standard
3. W3C project using Github