Welcome to HTML5-Tutorials

Our site offers a lot of HTML5 learning from absolutely beginning to advanced level.If you want to make a website with HTML,this site will completely guide you a lot.So learn HTML5 syntax and form of coding easily with this website.If you have any doubt,leave a message on us.We will return you so soon.This site includes innumerable number of references you need to do after studying their corresponding elements.

In this page,we will learn about HTML <samp> tag.

Use of <samp> tag

The <samp> tag is used to define an output from a computer program.
The texts within the <samp> and </samp> will be in the monospace font-family such as Courier.


Example of <samp> tag

    <samp> Error! </samp>

Supported Browsers.

<samp> Yes Yes Yes Yes Yes

Full Code Example

<!DOCTYPE html>
<p> Wrong actions outcome with <samp> Error! </samp> <br> <!--Right Form-->
Wrong actions outcome with Error!</p><!--Custom Form-->


Wrong actions outcome with Error!
Wrong actions outcome with Error!

More Reference

<samp> tag is a phrase tag.

Default CSS Properties of <samp> tag

samp {
font-family: "Courier";

Some related phrase tag of <samp> tag

Tag Notes
<code> It defines computer code.
<em> It defines emphasized texts.
<kbd> It defines a users input or sometimes voice command.
<strong> It defines strong texts.
<var> It defines a variable.