` tag in HTML for computer output formatting?
` tag in HTML for computer output formatting?
` tag in HTML for computer output formatting?"></p> <p>We use the <b><samp></samp></b> tag for computer output formatting. It is a phrase tag. It is used to define and identify the sample output of a computer program. It will display the text within the <samp> element in a single font. </samp></p> <h2>grammar</h2> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class='brush:php;toolbar:false;'><samp>The text…</samp>
The following is a simple example to explain the usage of tag in HTML -
<html> <head> <meta charset="UTF-8"> <meta name="description" content="meta tag in the web document"> <meta name="keywords" content="HTML,CSS"> <meta name="author" content="lokesh"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <p><b>Pluralsight</b> is the technology workforce development company that helps teams know more and work better together with stronger skills, improved processes</p> <samp> Pluralsight, Inc. is an American privately held online education company that offers a variety of video training courses for software developers </samp> </body> </html>
Another example of using this tag in an HTML document is −
<html> <head> <title>Title of the document</title> </head> <body> <samp> <h2> HTML document</h2> <p>This is a paragraph.</p> <p>This is another paragraph</p> </samp> </body> </html>
We can override font styles using style sheets.
<html> <head> <meta charset="UTF-8"> <meta name="description" content="meta tag in the web document"> <meta name="keywords" content="HTML,CSS"> <meta name="author" content="lokesh"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> samp{ font-family: cursive; } </style> </head> <body> <p><b>Pluralsight</b> is the technology workforce development company that helps teams know more and work better together with stronger skills, improved processes</p> <samp> Pluralsight, Inc. is an American privately held online education company that offers a variety of video training courses for software developers </samp> </body> </html>
The above is the detailed content of How can we use the `
` tag in HTML for computer output formatting?. For more information, please follow other related articles on the PHP Chinese website!