Javatpoint Logo
Javatpoint Logo

HTML code tag

HTML <code> 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

TagDescription
<em>displays emphasized text
<strong>displays important text
<dfn>defines a definition term
<code>defines a piece of computer code
<samp>specifies a sample output from a computer program
<kbd>defines keyboard input
<var>defines a variable

HTML phrase tags example including code tag

Test it Now

Output:

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

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<code>YesYesYesYesYes
Next TopicHTML col tag





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA