To determine the preformat of the text within a document, the HTML5 <pre> tag has to be used by the author. If the texts are placed inside this tag, these will have a fixed width font. The HTML5 <pre> tag is also the key in maintaining the spaces and line breaks.
When the <pre> tag is used in HTML5, the width attribute can no longer be applied. This is an attribute that works only for HTML4.01.
Using the HTML5 <pre> tag is not complicated at all. It is compatible with the Global Attributes and Event Attributes in HTML5. Aside from that, all major web browsers can read the functions of HTML5 <pre> tag. There should be no problem when it comes to making it work with Safari, Internet Explorer, Firefox, Google and Opera.