How to write sample output of a computer program using HTML? Last Updated : 19 Jun, 2024 Comments Improve Suggest changes Like Article Like Report To write the sample output of a computer program using HTML5, utilize the <samp> tag. This tag is a phrase tag specifically designed to represent sample output from a computer program, ensuring the text is appropriately styled and semantically meaningful. Syntax:<samp> Contents... </samp>Example: The example below shows how to write sample output of a computer program using <samp> tag. html <!DOCTYPE html> <html> <head> <title> Define sample output from a computer program </title> <style> body { text-align: center; } .gfg { font-size: 40px; font-weight: bold; color: green; } .geeks { font-size: 25px; font-weight: bold; } </style> </head> <body> <div class="geeks"> How to define sample output from a computer program </div> <samp> A computer science portal for Geeks </samp> </body> </html> Output: Output Comment More infoAdvertise with us Next Article How to write sample output of a computer program using HTML? M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Misc HTML-Questions Similar Reads How to write e-mails in HTML and send it using Gmail ? In this article, we are going to learn that how users can write e-mails in HTML format and send them using Gmail. However, Gmail doesn't offer an HTML editor still we can send HTML templates in an e-mail using some tools and methods. Many people need to send an e-mail with HTML templates to others. 3 min read How to write programs in your website and redirect it in JDoodle online compiler ? There may be situations where it may be required to run a piece of code that has been entered by the user. This can be done by using JDoodle. We can write our programs in any programming language on our website page and it can be redirected to the JDoodle online compiler to be run on that website.No 2 min read How to Build a Website using HTML? Building a website using HTML (Hypertext Markup Language) is the foundation of web development. HTML allows you to structure content, define headings, paragraphs, lists, and links, and create visually appealing web pages.In this article, we'll learn the fundamentals of How to build a Website using H 5 min read How To Execute HTML Program? HTML (HyperText Markup Language) is the standard language used to create web pages. Executing an HTML program is the process of rendering the code in the browser to display a web page. There are several approaches to running HTML code each suitable for the different environments and use cases. we wi 2 min read How to define a piece of computer code in HTML? The <code> element in HTML is used to display computer code, ensuring it is displayed with a fixed-width font for proper alignment and readability. Unlike basic heading tags, the <code> tag maintains the correct formatting of the code, including spaces and line breaks. HTML offers variou 2 min read Like