<span> tag in HTML

The <span> tag is used to create a styling scope in inline element or it used for grouping some element for styling in document.

Important Description

  • The <span> has no effect on any html element but with CSS and JavaScript it plays grate role for styling html content.
  • Open and close tag required of <span>.
  • The <span> element tag provides no visual change by itself.

Example of <span> tag

Result Look Like

I have a white cat pet.

<span> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<span> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)