HTML span

<span> tag in HTML

The <span> tag is used as a container used to hold different elements.

It can have any type of html elements (table,links, image, div and etc..).

<div> tag create a new line, while <span> tag does not create it.

Example

Try Yourself

Example - Difference between span and div tag

Try Yourself