xi
2
Meeting the “HT” in HTML
going
further with hypertext
Did someone say “hypertext?” What’s that?
Oh, only the entire
basis of the Web. In Chapter 1 we kicked the tires of HTML and found it to be a nice
markup language (the “ML” in HTML) for describing the structure of web pages. Now
we’re going to check out the “HT” in HTML, hypertext, which will let us break free of
a single page and link to other pages. Along the way we’re going to meet a powerful
new element, the
element, and learn how being “relative” is a groovy thing. So,
fasten your seat belts
—
you’re about to learn some hypertext.
Head First Lounge,
new and improved
44
Creating
the
new
lounge
46
What
did
we
do?
48
Understanding
attributes
51
Getting
organized
56
Organizing
the
lounge…
57
Technical
difficulties 58
Planning
your
paths…
60
Fixing
those
broken
images…
66
Exercise
Solutions
73
table
of
contents
xii
3
Web Page Construction
building blocks
h2
img
img
p
h2
h2
h1
p
p
p
I was told I’d actually be creating web pages in this book?
You’ve certainly learned a lot already: tags, elements, links, paths…but it’s all for
nothing if you don’t create some killer web pages with that knowledge.
In this chapter
we’re going to ramp up construction: you’re going to take a web page from conception
to blueprint, pour the foundation, build it, and even put on some finishing touches. All
you need is your hard hat and your toolbelt, as we’ll be
adding some new tools and
giving you some insider knowledge that would make Tim “The Toolman” Taylor proud.
From journal to website, at 12 mph
79
The
rough
design
sketch
80
From a sketch to an outline
81
From the outline to a web page
82
Test-driving
Tony’s
web
page
84
Adding
some
new
elements
85
Meet the
element
86
Looooong
quotes
90
Adding a blockquote
91
The real truth behind the
and
mystery
94
Meanwhile, back at Tony’s site…
100
Of course, you could use the
element to make a list…
101
Constructing HTML lists in two easy steps
102
Taking a test drive through the cities
104
Putting one element inside another is called “nesting”
107
To understand the nesting relationships, draw a picture
108
Using nesting to make sure your tags match
109
Exercise
Solutions
117
Dostları ilə paylaş: