Articles → HTML 5 → Samp Tag In Html5

Samp Tag In Html5






Purpose





Example


<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />

    <title></title>    
</head>
<body>
    The output of JavaScript code
    <code> document.write("Test"); </code>
    is
    <samp>Test</samp>
</body>
</html>

Try It


Output


Picture showing the output of samp tag in HTML5



Browser Support


Internet ExplorerFirefoxChromeSafariOperaEdge
YesYesYesYesYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, March 30, 2017

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250