ptg16476052
Workshop 157
7
If page breaks are essential to your document, you might consider saving it in the
PDF format and making it available for download.
Q How can I include em dashes or curly quotes (typesetter’s quotes) in my
HTML files?
A There are entities for all of these characters, but they might not be supported by all
browsers or on all platforms. Most people still don’t use them. To add an em dash,
use —. The curly quote entities are “ for the left quote and ”
for the right quote. Similarly, you can create curly single quotes using ‘ and
’.
Quiz
- What makes an HTML tag semantic?
- What are some things that the
(preformatted text) tag can be used for?
- What’s the most common use of the tag?
- Without looking at Table 7.2, list eight semantic tags and what they’re used for.
Quiz Answers
- Semantic HTML tags are tags that provide meaning to the enclosed content,
beyond just the framework of the document. - Preformatted text can be used for text-based tables, code examples, ASCII art, and
any other web page content that requires extra spaces to align characters. - The tag is most commonly used for signature-like entities on a web
page. These include the name of the author of the web page, contact information,
dates, copyright notices, or warnings. Address information usually appears at the
bottom of a web page. - The semantic tags are (for emphasized text), (for strongly empha-
sized text),(for programming code), (similar to
), (to
indicate user keyboard input), (for variable names), (for definitions),
and (for short quotes or citations).