Posted The: 28/05/2009 At: 14:31
Contents:
The HTML pre element is used to markup preformatted text. Many sites are also using it to markup code examples, by replacing them with > for ">" and < for "<".
Standard Attributes
| Attribute: | Value: | Description: | DTD: |
| Attrs | Other Attributes | Common, Event, I18n | STF |
DTD. Defines which document type the attribute is allowed. S=Strict, T=Transitional, F=Frameset.
The below shows how to markup code in HTML pages, using pre tags.
<pre>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>My first Website</title>
</head>
<body>
<p>My first Website.</p>
</body>
</html>
</pre>
Comments: [0]
© Brugbart Webdesign