Account
Categories

Span Tag


Definition:

Span tags are those HTML tags that are used within a line of text and are called span tags.

The important features are:

  • It does not break the line.
  • It makes the content attractive.
  • It applies to a word or a group of words in a line.

Span tags are HTML tags used within a line of text to style a word or a group of words; they do not break the line, make the content attractive, and are applied to small parts of text within a line.

Syntax:

<span>Your content goes here</span>

Example:

The word highlighted in red color is styled using the span tag.

Output:

The word highlighted in red color is styled using the span tag.