HTML code tag

HTML tag is used to represent computer code. It is a phrase tag which defines a piece of computer code. By default, it is displayed in the browser's default monospace font (also known as fixed-width font).

List of HTML phrase tags

Tag Description
displays emphasized text
displays important text
defines a definition term
defines a piece of computer code
specifies a sample output from a computer program
defines keyboard input
defines a variable

HTML phrase tags example including code tag

Test it Now


It is inside em tag.
It is inside strong tag.
It is inside dfn tag.
It is inside code tag.
It is inside samp tag.
It is inside kbd tag.
It is inside var tag.

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 col tag

Hot Tutorials

Contact US

HTML code Tag