WEB DEVELOPER‎ > ‎HTML LIBRARY‎ > ‎

Code Tag

The code tag is part of the phrase elements group as recommended by HTML 4.0.
<code> is generally used on inline characters/test to denote programming or scripting code.

Browsers differ on how and if they distinguish the <code> tag at all. Netscape, Firefox, and Internet Explorer tend to display this tag as slightly smaller than the body font, and in monospace font. Style sheets can be used to modify this.

If you want to show white spaces in your coding screen-display, then use the <pre> tag.
Comments