<pre> HTML tagWe can display compute codes or scripts with different tags by using pre html tag. Usually browsers ignore multiple spaces and tabs and display one single space break. We can retain the same space between words by using pre code.
Similarly some symbols like less than or greater than can be displayed without any conversion.
Another advantage of pre command is it retains the line breaks between lines.
Let us try to display some text having multiple lines and more than one space within words and having some symbols.
When displayed along with pre tag then above lines will retain their extra space and line breaks
Learn how to display html tags in web pages.
This article is written by plus2net.com team.