HTML <samp> Tag Last Updated : 11 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report It is a phrase tag and is used to define the sample output text from a computer program.Syntax: <samp> Contents... </samp>Example: In this example, we are using the <samp> tag to display sample output or code. Here, the text "A computer science portal for Geeks" is rendered in a monospace font, indicating sample output. HTML <!DOCTYPE html> <html> <body> <h1>GeeksforGeeks</h1> <h2><samp> Tag</h2> <!-- html <samp> tag is used here --> <samp>A computer science portal for Geeks</samp> </body> </html> Output: Supported Browsers: Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML Tag M manaschhabra2 Follow Improve Article Tags : Technical Scripter Web Technologies HTML Technical Scripter 2018 HTML-Tags +1 More Similar Reads HTML <s> Tag This tag is used to specify that the text content is no longer correct or accurate. This tag is similar but slightly different from the <del> tag. The <s> tag should not be used to define deleted text, rather use the <del> tag for that.The <s> tag is used to define text that 2 min read HTML <span> Tag The HTML <span> tag is an inline container that is used to group and apply styles or scripts to specific parts of text or elements within a document. The <span> tag is inline, meaning it doesn't create a new line. It stays within the same line as the text around it.The <span> tag d 4 min read HTML <search> Tag HTML <search> Tag indicates a grouping of elements related to the search. The elements inside a <search> tag include form elements designed for conducting searches. However, Default styling is provided by the browser to the <search> element and we can also provide custom CSS stylin 2 min read HTML <rtc> Tag The HTML <rtc> tag is used to define the explanation of the ruby annotation which is a small text, attached with the main text. Such kind of annotation is used in Japanese or chinese publications. The <rtc> tag contains the <rt> tag. Note: HTML <rtc> tag is not supported in h 1 min read HTML <i> Tag The <i> tag in HTML is used to display the content in italic style. This tag is generally used to display the technical term, phrase, the important word in a different language. The <i> tag is a container tag that contains the opening tag, content & closing tag.Syntax// Inline way to 3 min read HTML <section> Tag The Section tag defines the section of documents such as chapters, headers, footers, or any other sections. The section tag divides the content into sections and subsections. The section tag is used when requirements of two headers or footers or any other section of documents are needed. Section tag 3 min read Like