Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML samp Tag

HTML samp Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <samp> tag

HTML <samp> tag is a phrase tag which is used to represent the sample output from a computer program or a script, in the browser.

The content written between the <samp> and </samp>, tags renders in a browser?s default monospace font.

Note: The <samp> tag is not deprecated yet, but you can also use CSS property to achieve the same result.


<samp>Write sample output here.....</samp>

Following are some specifications about the HTML <samp> tag

Display Inline
Start tag/End tag Both Start and End tag
Usage textual


<!DOCTYPE html>
	<title>HTML samp tag</title>
     	text-align: center;
<h2>Example of samp tag</h2>
<p>I am trying to install a software on my system but it is continuously giving an error message:
<p><samp>Error 5: Access is denied.</samp></p>
Test it Now


HTML samp tag


Tag-specific attributes:

The <samp> tag does not contain any specific attribute.

Global attribute:

The <samp> tag supports the global attributes in HTML

Event attribute:

The <samp> tag supports the event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
Next TopicHTML script Tag

Related Links:

Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf