Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML tag

Example

Use Coloring part of the text with the element:

My mother has Blue eyes.

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support tag.


Tag Definition and Usage Notes

Used to group inline elements in a document.

The tag has no fixed visual representation. It produces a visual change only when a style is applied to it. If no style is applied to the tag, then the text inside the element will have no visual difference from other text.

The tag provides a way to separate a part of the text or a part of the document.


Tips and Notes

**Tip:** The text contained in the element can be styled with CSS or manipulated with JavaScript.


Differences between HTML 4.01 and HTML5

NONE.


Global Attributes

The tag supports HTML Global Attributes.


Event attribute

The tag supports HTML Event Attributes.