HTML tag

HTML tag is used to highlight the some text part inside of another element such as paragraph, for reference or any notation purpose.

This is a newly added tag and introduced in HTML5.

In most of the browser, the text contained with tag renders with the yellow background, but it can be changed using CSS background-color property.

Syntax:

Following are some specifications about the HTML tag

Display Inline
Start tag/End tag Both Start and End tag
Usage Semantic and textual

Example

Test it Now

Output:

HTML mark tag

Attribute:

Global attribute:

The tag supports the global attributes in HTML

Event attribute:

The tag supports the event attributes in HTML.

Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML marquee Tag




Contact US

Email:[email protected]

HTML mark Tag
10/30