Setting Color Property
The color property typically defines the color of the text content of an element.
For instance, the color property specified in the body selector defines the default text color (foreground color in general) for the whole page.
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
Tag | Description |
---|---|
<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
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.
Leave A Comment