code Element

Description

code element marks a fragment of computer code. Its default style is {font-family: monospace;}

Example

The following code shows how to use code element.


<!DOCTYPE HTML>
<html>
<body>
  This is a <code>test</code>.
</body><!--  www . j av a  2 s . c om-->
</html>

Click to view the demo





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed