RSRobince Studio

Div and Span

The <div> and <span> tags are generic containers used to group content so you can style it.

A <div> is a block container that starts on a new line and takes the full width. A <span> is an inline container that sits inside a line of text.

These tags add no meaning on their own. Prefer semantic tags when one fits your content.
Try it yourself

Loading editor…