Posted The: 29/05/2009 At: 13:43
Contents:
The HTML samp element is used to markup samples of source code, such as HTML, css, JavaScript. Etc. Rendering code as text is done by replacing ">" with ">" and "<" with "<".
Most sites are using pre instead.
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 samples in HTML pages, using samp tags.
<samp>
<!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>
</samp>
Comments: [0]
© Brugbart Webdesign