The HTML5 pre Tag

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.

Featured pages

Overview

Learn about HTML5 architecture, design principles and patterns on HTML5 Overview Tutorial. Become …

Tags

Learn about HTML5 tags and discover a new list of HTML5 tags. Find out about HTML5 tags support by…

Welcome

 Learn HTML5 development techniques, tips and tricks on our website. Find out what is required…

Date Time Picker

HTML5 forms use date and time controls regularly. HTML5 date and time controls are used by booking …