HTML div tag

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

HTML div tag specifies the large blocks of content while span tag specifies the small block of content.

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