<p class="code"> will work if it is specified correctly in a (preferred) external or internal stylesheet. <p id="code"> will of course not work as you know.
The example you give, <p id="code">, strengthens my advice to read some tutorials regarding HTML/CSS.
|