Site icon Tutorial

samp Tag for Output

samp Tag for Output

It is used for indicating sample output from a computer program, script etc. The samp tag surrounds the sample word/phrase. Text placed between its opening and closing tags is shown in monospaced font as shown

HTML code

<p>      You will be asked <samp>Delete or not?</samp> to continue.</p>

Browser output

Exit mobile version