Horje

Example of HTML <samp> For Program Output

Define some text as sample output from a computer program in a document:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>The samp Element</h2>

<p>The samp element is used to define sample output from a computer program.</p>

<p>Message from my computer:</p>
<p><samp>File not found.<br>Press F1 to continue</samp></p>

</body>
</html>

Output should be:

Example of HTML <samp> For Program Output




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Computer Code
Uploaded by:
Admin