code Element For Adding Code to Your Web Pages : code « Tags « HTML / CSS

HTML / CSS » Tags » code 
code Element For Adding Code to Your Web Pages

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" lang="en" xml:lang="en">

  <title>Representing Code, Keyboard Instructions and Programming Variables</title>

<h2>The &lt;code&gt; Element For Adding Code to Your Web Pages</h2>
<p>The following line appears inside a &lt;code&gt; element.</p>
<p><code>&lt;h1&gt;This is a primary heading&lt;/h1&gt;</code></p>


Related examples in the same category
1.code must be within pre (inline elements can't contain block-level elements)
2.Displaying blocks of code online
3.Blocked and preserved Code
4.Formula input
5.code margin: 5px 0;
6.code padding: 10px;
7.code text-align: left;
8.code display: block;
9.code overflow: auto;
10.code font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
11.code background: #F5F5F5;
12.code border-left: 3px solid #D4D4D4;
13.code font-family:courier, monospace;
14.code font-size:12px;
15.code font-weight:bold;
16.code border:1px solid #000000;
17.code {display:block;}
18.code font-family: courier;
19.code color: #000000;
20.code font-size: smaller;
21.code background-color: #d6d6d6;
22.code padding: 2px;
23.code margin: 5px;
24.code padding: 3px;
25.code background-color: black;
26.code color: #FFFFFF;
27.Code style
28.'code' Example  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.