HTML tag

HTML tag is a phrase tag which is used to represent the sample output from a computer program or a script, in the browser.

The content written between the and , tags renders in a browser?s default monospace font.

Note: The tag is not deprecated yet, but you can also use CSS property to achieve the same result.

Syntax

Following are some specifications about the HTML tag

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

Example

Test it Now

Output:

HTML samp tag

Attribute:

Tag-specific attributes:

The tag does not contain any specific 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 script Tag




Contact US

Email:[email protected]

HTML samp Tag
10/30