- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- 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
HTML Tag
The <samp> tag in HTML is a phrase tag like <em>, <code>, <strong>, etc and is used to format text in an HTML document. It is also used to display output from a computer program.
Let us now see an example to implement the <samp> element−
Example
<!DOCTYPE html> <html> <body> <h2>OS issues</h2> <p>If the system hangs...</p> <samp>Press CTRL + ALT + DELETE and delete the current tasks.</samp> </body> </html>
Output
In the above example, we have set the text inside the <samp> tag−
<samp> Press CTRL + ALT + DELETE and delete the current tasks. </samp>
Advertisements