Imagine designing a site and it
suddenly not working the way you thought it would. It looks fine in your web design package
and also in some web browsers, but it starts falling apart in others. Just removing an
XML declaration might be enough to fix the site.
If you take the elements of this chapter and form them into a simple checklist, you won??™t
have to risk displaying those wonderful ???Untitled Documents??? to the entire world (or inadvertently
advertising the package you used to create the page). To make your life easier,
you can refer to this checklist:
1. Ensure the relevant DOCTYPE declaration and namespace is in place.
2. Remove the XML declaration if it??™s lurking.
3. Add a title tag and some content within it.
4. Add a meta tag to define your character set.
5. If required, add keywords and description meta tags.
6. Attach a CSS file (or files).
7. Attach a JavaScript file (or files).
8. If your web editor adds superfluous body attributes, delete them.
9. Ensure there are no characters prior to the DOCTYPE declaration or after the html
end tag.
10. Ensure no web page content appears outside the body element.
Along with enabling you to comment your work, comments can be used to disable
sections of code when testing web pages.
WEB PAGE ESSENTIALS
59
2
3 WORKING WITH TYPE
In this chapter:
Working with semantic markup
Defining font colors, families, and other styles
Understanding web-safe fonts
Creating drop caps and pull quotes
Rapidly editing styled text
Working to a grid
Creating and styling lists
An introduction to typography
Words are important??”not just what they say, but how they look.
Pages:
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124