Horje

How to add HTML <samp> Tag for Coding view

Define some text as sample output from a computer program in a document:

Definition and Usage

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

Tip: This tag is not deprecated. However, it is possible to achieve richer effect by using CSS.

Also look at:

Tag Description
<code> Defines a piece of computer code
<kbd> Defines keyboard input
<var> Defines a variable
<pre> Defines preformatted text

Browser Support

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

Output should be:

How to add HTML <samp> Tag for Coding view




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin