Contact Number
Email Address

span

span

Definition and Usage

The HTML <span> tag defines a generic inline container in an HTML document . span however is an inline element, meaning that it can be on ,for example words within a sentence which does not inherently represent anything. This tag is also commonly referred to as the <span> element.The span tag is like the div tag. It has no meaning at all.
  • The <span> tag is extensively used to define the structural sections of a document and to layout a web page using CSS.
  • A <span> element used to color a part of a text.
  • It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values.The HTML tag is used for grouping and applying styles to inline elements.

Syntax

text1 <span style="color: red; font-size: 20px;"> text2</span> text3