HTML Samp Tag


HTML Tag

This HTML Tag is used to define sample output from a computer program. The content inside appears in the browser’s default monospace font.

HTML Tag is a phrase tag used to represent sample output from a computer program or script in a browser.

Text between and appears in the browser’s default monospace font.

Note:- The Tag is not yet deprecated, but you can also use the CSS property to get the same result.

Example:-




    
    
        HTML samp Tag
    



This is HTML samp Tag Example

Press Ctrl + C to copy text (Windows).

Press Cmd + C to copy text (Mac OS).

Output:-

Tip: This tag is not disliked. However, it is possible to achieve a rich effect using CSS (see example below).

HTML Tag

HTML Tag

HTML Tag

HTML

 Tag

HTML Tag


3 thoughts on “HTML Samp Tag”

Leave a Comment