Horje
How to create HTML <samp> For Program Output

The HTML <samp> element is used to define sample output from a computer program. The content inside is displayed in the browser's default monospace font.


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





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


Read Article
https://develop.horje.com/learn/1434/reference