How to use <pre> tag in html

How to use <pre> tag in html


Introduction

How to use <pre> tag in html


techstudy.org

Kindle Paperwhite High Resolution Display Tablet | Rs. 9999

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>www.techstudy.org</title>
  6. </head>
  7. <body>
  8. <pre>
  9. class EmployeeClass{
  10.  
  11. public static void main(String[] args){
  12.  
  13. System.out.println("www.techstudy.org");
  14.  
  15. }
  16.  
  17. }
  18. </pre>
  19.  
  20. <p>
  21. Using the pre html tag you can display text however you want with all the spaces and line breaks.
  22. </p>
  23. </body>
  24. </html>
  25. </html>

Result

html excercise techstudy.org

     





Related Topics



Responses




Popular Posts

Facebook

Founded in 2016, Tech Study passionately delivers stylish and dynamic innovative information to programmer and technology lovers. http://www.techstudy.org/.