HTML and CSS Reference
In-Depth Information
The Case of Relatives and Absolutes
So, how did RadWebDesign flub up the demo? Well,
because they used URLs for their href s instead of relative
links, they had to edit and change every single link from to http://www. . Can you say error-prone? At 3:00
a.m., someone yawned and accidentally typed (and as fate has it,
that was the same link that the CEO clicked on at
the demo).
CorrectWebDesign, on the other hand, used relative
paths for all internal links. For example, the link from the
company's mission statement to the products page,
<a href="../products.html"> , works whether
the site is called PlanetRobots or RobotsRUs. So, all
CorrectWebDesign had to do was update the company
name on a few pages.
So RadWebDesign left the demo sleep-deprived and with
a little egg on their face, while CorrectWebDesign left the
meeting with even more business. But the story doesn't end
there. It turns out that RadWebDesign dropped by a little
coffeehouse/bookstore after the demo and, determined not
to be outdone, picked up a certain book on HTML and
CSS. What happened? Join us in a few chapters for “The
Case of Brute Force Versus Style.”
Search WWH ::

Custom Search