Grouping Tags

Following tags are known as grouping tags. 

  • div: It is a block level element.
  • span: It is an inline element.

Block level elements always start with a new line and take all width available to it. On the other hand, inline elements do not take the new line and takes only the required space. 

Content Division Element

<div> is a paired tag, it is used as a container of other elements. 

Span Element

<span> is also paired tag. As it is an inline element it will not make a new line. It is mainly used as a container for some text.