HTML and CSS Reference
In-Depth Information
Figure 2.8
Using the align
attribute to center
the first heading and
paragraph
The Blockquote Element
Besides organizing text in paragraphs and headings, sometimes you need to add a quo-
tation to a web page. The <blockquote> tag is intended to be used to display a block
of quoted text in a special way—indented from both the left and right margins. A block
of indented text begins with a <blockquote> tag and ends with a </blockquote> tag.
HANDS-ON PRACTICE 2.5
Launch Notepad or another text editor and type in the following XHTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Blockquote Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<h1>Power of the Web</h1>
<p>According to Tim Berners-Lee at
http://www.w3.org/WAI/:</p>
<blockquote>
The power of the Web is in its universality. Access by everyone
regardless of disability is an essential aspect.
</blockquote>
</body>
</html>
 
Search WWH ::




Custom Search