If you add lots of spaces inside the HTML <p> tag then the browser removes extra spaces and extra lines at the time of displaying page. It counts the number of spaces and lines as a single one.
To solve this problem you can use HTML <pre> element.
HTML <pre> Element:
The HTML <pre> element represents preformatted text which is to be presented exactly as written in the HTML file.
Whitespace inside this element is displayed as written.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok