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
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_formatting_samp





Related Articles
What is HTML Computer Code HTML Computer Code
How to create HTML <kbd> For Keyboard Input HTML Computer Code
How to create HTML <samp> For Program Output HTML Computer Code
How to create HTML <code> For Computer Code HTML Computer Code
How to create HTML <code> For Computer Code Part - 2 HTML Computer Code
How to create HTML <var> For Variables HTML Computer Code

Single Articles
Example of HTML <samp> For Program OutputHTML Computer Code

Read Full:
HTML Computer Code
Category:
Web Tutorial
Sub Category:
HTML Computer Code
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
142



Share on: