- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do we add a sample computer code in HTML?
Use the <samp> tag to display a sample computer code. The HTML <samp> tag is used to display the output of a computer program.
Example
You can try to run the following code to implement <samp> tag in HTML −
<!Doctype html> <html> <head> <title>HTML samp Tag</title> </head> <body> <p>The header file always starts with <samp>#include</samp>.</p> </body> </html>
- Related Articles
- How do we add a comment in HTML code?
- How do we add a definition term in HTML?
- How do we add a menu list in HTML?
- How do we add a table row in HTML?
- How do we add a noframe section in HTML?
- How do we add a noscript section in HTML?
- How do we add document title in HTML?
- How do we add glossary definitions in HTML?
- How do we add bold text in HTML?
- How do we add a push button to HTML?
- How do we do computer output formatting using the tag in HTML?
- How do we add a single-line input field in HTML?
- HTML Computer Code Elements
- How do we add the width in characters for in HTML?
- How do we add extra information about an element in HTML?

Advertisements