Pre (Preformatted) Element

<Pre> (Preformatted Element)

Explanation

Pre (preformatted) Element is used to display the contents exactly as mentioned by the user.
It shows the original format of a content.
<pre>Text</pre>

Example Code:

Result :
HTML5 - Hyper Text Markup Language
The format of HTML5 is Markup language.
  • If required, user can avoid line breaks and spaces in a document.
  • It will not execute the codes.
It is available in previous versions of HTML.
It supports both Global Attributes and Event Attributes in HTML5.

Limitations:

It is applicable to all major browsers.

Ask Questions

Ask Question