Page 1
1 Minute HTML
<pre> and <blockquote>
Page 2
<pre> and without <pre>
Page 3
Without <pre>• Line breaks
• Multiple whitespaces
• Tabs …
Page 4
Without <pre>• Line breaks
• Multiple whitespaces
• Tabs
become a single whitespace
Page 5
Sometimes (e.g.) writing source code
You want those exactly reflected
Page 6
<blockquote> changes
the font
Page 7
This is the normal font
Page 8
If it is a quote,
you want to change the font
Page 9
Let’s see how
<pre> works
Page 11
<p> (unlike <pre>) does not reflect
white spaces and line breaks you entered
Page 13
Instead, using <pre>…
Page 14
Reflects exactly what
you entered
Page 15
Note that tabs are
also reflected
Page 16
So, if you remove the tab
for the 1st line..,
Page 18
… that is reflected so
Page 20
You might want to apply
a special font for a quoted text
Page 21
Then, use <blockquote>
Page 22
Here you see a different font is applied