Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1
Lesson 1: Thinking HTML5 semantics CHAPTER 5 215

by Contoso, <abbr title='Incorporated'>Inc.</abbr>
</p>

Note that the title is not required, especially when you know that everyone will know the
meanings of the abbreviations and acronyms.

The <address> element
Use the <address> element to define contact information for the author/owner of a docu-
ment. You may include email address, postal address, or any contact address that references
the author/owner of the document.
Be careful to use the <address> element only when referencing the author/owner of the
document. Do not use it for arbitrary address information on your webpage. For example, if
you are displaying your customer’s address on a webpage, it should not be wrapped in an
<address> element.
The following is an example of the use of the <address> element in the footer of a
webpage.
<footer>
Copyright (C) 2012
<address>
Contoso, Inc.
<a href="email:[email protected]">
[email protected]
</a>
</address>
</footer>

Quotations and citations
When it’s time to start quoting, you can use the <blockquote> element to create a long, run-
ning quotation and the <q> element for an inline quotation. Both these elements have a cite
attribute that names the source work of the quote.
The <blockquote> element is a block-level element; it can contain almost anything, includ-
ing headers, footers, tables, and paragraphs. The <blockquote> element is a sectioning root,
which means that any <hn> elements within the <blockquote> element will not be included
in an outline of the HTML document. In addition, a single paragraph does not need to be
included in a <p> element.
The <blockquote> and <q> elements have a cite attribute that names the source work,
but as an attribute, this is hidden data. A better approach is to use the <cite> element, which
you can place in the <footer> element of your <blockquote> and <q> elements. The cita-
tion should always contain the name of the work, not the author name. The following is an
example of the <blockquote> element.
<blockquote>
O Romeo, Romeo, wherefore art thou Romeo?<br />
Deny thy father and refuse thy name;<br />

Key
Te rms

Free download pdf