Form
<code> ... </code>
Attributes
attribute |
default |
description |
id |
none |
specifies the unique ID |
class |
none |
specifies the style sheet class |
style |
none |
specifies the style sheet |
Explanation
The code tag denotes program code.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
</head>
<body>
<h1>Sample</h1>
<p>
Old-familiar program code<br>
<code>
10 '--- S-BASIC<br>
20 FOR I=0 TO 100<br>
30 PRINT I,<br>
40 NEXT<br>
</code>
</p>
</body>
</html>