HTML5 and CSS 3 – Illustrated 2nd Ed. Instructor’s Manual: Unit B Page 5 of 13
TEACHER TIP
Use the figures to point out how the indenting helps make the code more readable. Explain that the
indenting is for cosmetic reasons only, that is, to help the developer quickly see the structure of the
document, but that the indenting has no impact on how the code appears when the page is rendered
in a browser.
FIGURES: B-5, B-6
BOXES
1. Quick Tip: If your code editor indents new elements automatically, you may not need to press
[Spacebar] at all. Remember to compare your code to the figures to confirm indents.
2. Quick Tip: The h2 element marks a heading that’s at the second-highest heading level in the
document.
3. Clues to Use: Writing for the Web
Many users want a process of finding and consuming web content that is dynamic and fast-paced.
When you write content for the web, you should keep this in mind. Web content should generally
be brief and scannable. A user should be able to get the gist of what your page contains with a quick
glance. This allows users to quickly decide to stay on the page if the page contains the information
they’re looking for, or to navigate elsewhere and keep looking. You can make content scannable by
including a short, descriptive heading at the top, and by breaking the content itself into sections
with headings. After writing the actual content, it can be useful to revise it with the goal of
removing half the words. This helps focus your writing and reduces the content of your web page to
the essentials, which makes it easier for web users to scan and read.
After you publish content online, it’s crucial to keep it up to date—out of date information
makes your website’s content seem unreliable. You can minimize the amount of regular updating
you need to do by reducing or eliminating relative references to dates (such as “5 years ago” or “in
18 months”) or labeling specific dates as being in the future (such as “The building will be
completed in 2013.”)
CLASSROOM ACTIVITIES
1. Critical Thinking: What are the implications of including multiple div elements in a single Web
page? Is there any point in nesting div elements one inside the other in order to give different CSS styles
to different groups of elements? Consider these questions with respect to how to structure your web
page.
2. Quick Quiz: