HTML span

<span> tag in HTML

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

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

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

Example

Try Yourself

Example - Difference between span and div tag

Try Yourself