30/09/2014

HTML pre (Preformatting) tag

When we write a HTML code in notepad. we will use spaces, will press enters so we can orientate easier in searching of the mentioned part. A browser will interpret the code as a single line though, ignoring the spaces and enters mentioned above. For that we have the <pre> tag which makes the browser viewing be the same with the notepad one.
Input
<pre>Your privacy is important to us. Your contact information is used only to respond to your feedback.</pre>
Output

Your privacy is important to us. Your contact information is used only to respond to your feedback.