Welcome ðŸŽ‰

logo

ReactLMS

Search
Light Mode
Contact Us

1 min to read

Contact us

No results for your search.
Sorry, an unexpected error occurred

Concept


Tag <pre> in HTML is used to display text in a formatted and preserved format.

This is one of the tags used to display code or specially formatted text.


Usage


<pre>
   function greet() {
       console.log("Hello, world!");
   }
   greet();
</pre>






Result

   function greet() {
       console.log("Hello, world!");
   }
   greet();
  

Tag <pre> preserves the original formatting of the text, including spaces and line breaks. This allows for accurate and readable display of code snippets.


Read more
On This Page