Build Your Own Website The Right Way Using HTML CSS 3rd Edition Ian Lloyd download
Build Your Own Website The Right Way Using HTML CSS 3rd Edition Ian Lloyd download
https://ebookultra.com/download/build-your-own-website-the-right-
way-using-html-css-3rd-edition-ian-lloyd/
Build Your Own Website The Right Way Using HTML CSS 3rd
Edition Ian Lloyd
https://ebookultra.com/download/build-your-own-website-the-right-way-
using-html-css-3rd-edition-ian-lloyd-2/
Build and Upgrade Your Own PC Third Edition Build Your Own
Ian Sinclair
https://ebookultra.com/download/build-and-upgrade-your-own-pc-third-
edition-build-your-own-ian-sinclair/
Build Your Own ASP NET Website Using C VB NET 1st Edition
Zak Ruvalcaba
https://ebookultra.com/download/build-your-own-asp-net-website-using-
c-vb-net-1st-edition-zak-ruvalcaba/
https://ebookultra.com/download/create-your-own-website-using-
wordpress-in-a-weekend-1st-edition-moore/
HTML and CSS Design and Build Websites First Edition Jon
Duckett
https://ebookultra.com/download/html-and-css-design-and-build-
websites-first-edition-jon-duckett/
https://ebookultra.com/download/create-your-own-website-4th-edition-
scott-mitchell/
https://ebookultra.com/download/html-xhtml-and-css-bible-3rd-edition-
bryan-pfaffenberger/
https://ebookultra.com/download/build-your-own-cbg-first-edition-
kasten/
https://ebookultra.com/download/build-your-own-wireless-lan-1st-
edition-james-trulove/
Build Your Own Website The Right Way Using HTML
CSS 3rd Edition Ian Lloyd Digital Instant Download
Author(s): Ian Lloyd
ISBN(s): 9780987090881, 0987090887
Edition: 3
File Details: PDF, 26.73 MB
Year: 2011
Language: english
Summary of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
1. Setting Up Shop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2. Your First Web Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3. Adding Some Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
4. Shaping Up Using CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
5. Picture This! Using Images on Your Website . . . . . . . . . . . . . . . . . . . . . . . . 175
6. Tables: Tools for Organizing Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
7. Forms: Interacting with Your Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
8. Interacting with Social Media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
9. Launching Your Website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
10. Enhancing the Site with HTML5 and CSS3 . . . . . . . . . . . . . . . . . . . . . . . . . 367
11. Adding Interactivity with jQuery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
12. What to Do When Things Go Wrong . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
13. Pimp My Site: Cool Stuff You Can Add for Free . . . . . . . . . . . . . . . . . . . . 457
14. Where to Now? What You Could Learn Next . . . . . . . . . . . . . . . . . . . . . . . 483
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501
BUILD YOUR OWN
WEBSITE THE
RIGHT WAY USING
HTML & CSS
BY IAN LLOYD
3RD EDITION
iv
Build Your Own Website The Right Way Using HTML & CSS
by Ian Lloyd
Notice of Rights
All rights reserved. No part of this book may be reproduced, stored in a retrieval system or transmitted
in any form or by any means, without the prior written permission of the publisher, except in the case
of brief quotations embodied in critical articles or reviews.
Notice of Liability
The author and publisher have made every effort to ensure the accuracy of the information herein.
However, the information contained in this book is sold without warranty, either express or implied.
Neither the authors and SitePoint Pty. Ltd., nor its dealers or distributors will be held liable for any
damages to be caused either directly or indirectly by the instructions contained in this book, or by the
software or hardware products described herein.
Trademark Notice
Rather than indicating every occurrence of a trademarked name as such, this book uses the names only
in an editorial fashion and to the benefit of the trademark owner with no intention of infringement of
the trademark.
48 Cambridge Street
Collingwood VIC Australia 3066
Web: www.sitepoint.com
Email: [email protected]
Ian Lloyd is a senior web designer/developer who works full time for a major financial services
organization in the UK on their various websites. He is the author or co-author of a number
of web development books, including SitePoint’s Ultimate HTML Reference. He has also
contributed articles to industry-leading sites such as A List Apart, Think Vitamin, and .net
magazine. Ian has spoken at several high profile web conferences on the topic of web access-
ibility—including South By Southwest (SXSW) in Austin, Texas and @media in London—and
founded one of the earliest online accessibility resources, Accessify (http://accessify.com/),
in 2002.
Ian’s on Twitter as @lloydi, or you can follow the book’s Twitter account that he posts on
(albeit less frequently, but on stuff more relevant to this book), which is @byowebsite.
Tom Museth first fell in love with code while creating scrolling adventure games in BASIC
on his Commodore 64, and then usability testing them on reluctant family members. He then
spent 16 years as a magazine writer, newspaper journalist, and production editor before de-
ciding web development would be much more rewarding. He has a passion for jQuery, PHP,
HTML5, and CSS3, is eagerly eyeing the world of mobile dev, and likes to de-stress via a
book, a beach, and a fishing rod.
About SitePoint
SitePoint specializes in publishing fun, practical, and easy-to-understand content for web
professionals. Visit http://www.sitepoint.com/ to access our books, newsletters, articles, and
community forums.
For Manda, my “better half.” This
book would not have been
possible without your continued
support. All my love, Lloydi.
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
What is a Browser? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
Who Should Read This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
What You’ll Learn from This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxv
How You’ll Learn to Build Your Website . . . . . . . . . . . . . . . . . . . . . . . . . xxvi
HTML, Markup, CSS … Welcome to Your First Bits of Jargon! . . . xxvi
Building the Example Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxviii
What This Book Won’t Tell You . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxviii
What’s in This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxix
Where to Find Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxii
The SitePoint Forums . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxii
The Book’s Website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxii
The SitePoint Newsletters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
The SitePoint Podcast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
Your Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiv
Conventions Used in This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxv
Markup Samples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxv
Tips, Notes, and Warnings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvi
Thomas Jefferson, his wife and two daughters are buried near the crest
of Monticello, “Little Mountain.”
Monticello, the home of Jefferson, is beautifully situated, and commands
a view of the town of Charlottesville, the University of Virginia, and the
neighboring country. It has long been known as one of the most picturesque
spots in the South. For many years, a monument bearing the following
inscription from his own pen marked Jefferson’s grave:
HERE WAS BURIED
THOMAS JEFFERSON
AUTHOR
OF THE DECLARATION OF
AMERICAN INDEPENDENCE
OF
THE STATUTE OF VIRGINIA
FOR RELIGIOUS FREEDOM, AND
FATHER OF THE UNIVERSITY
OF VIRGINIA
BORN APRIL 2D
1743 O.S.
DIED [JULY 4]
[1826]
The old monument was removed about fifteen years ago, and now stands
on the campus of the University of Missouri, at Columbia, Missouri, and a
more imposing one was erected in its place.
No Trips to Europe
Mr. Jefferson G. James, an old and prominent citizen of San Francisco,
died in May, 1910; he was a pioneer cattle dealer and politician; he left a
large estate to be disposed of under his will, which was written with his
own hand and is an eccentric document. One provision in the nature of
advice to the distributees reads as follows:
“Don’t be mean. Don’t pay my employes more than is being paid them
now. No outside speculations. No expensive trips to Europe. Spend your
money in this country. Buy or build nice residences and live and enjoy
yourselves among people you know. The dividends to the small
stockholders will assist in the support of a family.”
In a codicil, he recurs to the subject of European travel, which seems to
have been a pet aversion; he again says, “No trips to Europe.”
The writer of the second will, Samuel D. Howard, aged twenty-one, died
in the mine; his will in part is in these words:
“Alive at 10.30 o’clock yet. Sam D. Howard and Brother Alfred is with me yet. A good
many dead mules and men. I tried to save some, but came almost losing myself. If I am
dead give my diamond ring to Mamie Robinson. The ring is coming to the Post Office.
Henry can have the ring I have in my good clothes. The only thing I regret is that my
brother could not help mother after I am dead and gone.
* * * * * * *
“To keep me from thinking I thought I would write these few lines. There is rock
falling all over. We have our buckets full of water, seep water, and we drink it and bathe
our heads in it.
* * * * * * *
“Seven fifty o’clock in the morning. This is Sunday. There is no air. We have fanned
ourselves with the lids of our buckets. Twenty five after 9 and black damp coming both
ways. Twenty five after 10 we gave up all hope. We have done all we could. The fan had
better start above soon. Twenty five after 10 A.M. Sunday. We are still alive, the only hope
is the fan.
“I think I won’t have strength to write pretty soon. Fifteen after 12 o’clock Sunday. If
they can’t give us air, we will make fans ourselves. We take turns at the fan. We have three
of them going. Twenty seven to 3 P.M. and the black damp is coming in on us.
“Only for the fans we would be dead. Eleven to 4 P.M. dying for want of
air. We have six fans moving. One after another fifteen feet apart. We all
had to come back. We can’t move front or backward. We can stand it with
our fans until Monday morning.
“Fifteen after 2 A.M. Monday. Am still alive. We are cold, hungry, weak,
sick and everything else. Alfred Howard is still alive. 9.15 A.M.
“Monday morning, still breathing. Something better must turn up or we
will soon be gone. Eleven fifteen A.M. still alive at this time. Sixteen to 1
P.M. Monday, we are still getting weak, Alfred Howard as well as the rest of
us.”
A Weird Custom
In one of Balzac’s best novels, “The Country Doctor,” he tells of a
strange custom which prevails in some of the mountainous districts of
France. It will be recalled that the Country Doctor leaves Paris and takes up
his abode in a remote country district, the purpose being to make amends
for a life which at the outset had not been blameless and had brought about
remorse and contrition. He devotes a long and useful life to the
unsophisticated country people among whom he locates.
The custom referred to is that upon the death of a husband the neighbors
surround the bier and at intervals wail, “The master is gone! The master is
gone! The master is gone!” The widow with her own hands cuts off her hair
and places it in the hands of the corpse, as an evidence of devotion and
constancy.
To the Devil
There is perhaps no sentiment, grateful or spiteful, or any phase of
humor, good or bad, which has not been illustrated in testamentary
documents.
Probably the legatee who stood the least chance of realizing was the
Devil; an attempt was made to make him a land owner in Finland: a few
years ago, a queer old native of that country devised all his property to the
Devil without attempting to establish the identity of the devisee. The
Devil’s claim was disregarded and the property went to the heirs of the
testator. It was suggested by one writer that doubtless the testator desired to
make a good impression on his Satanic Majesty with a view to conciliating
him; another writer suggests that even the name of the Devil in a will is
better than none, such omissions being frequently found in wills.
Devise to an Idol
Within recent years, the Judiciary Committee of the Privy Council of
Great Britain was called upon to pass on the validity of a testamentary
devise made four hundred years prior to that time by a resident of India,
conveying by will certain lands to the use of an idol, and, strange to say,
this gift was sustained.
Mr. Justice Riddell, of the Supreme Court of Canada, recently called
attention to this remarkable devise, in an address before the State Bar
Association of Missouri.
It appears that one of the descendants of the original testator, after the
lapse of four centuries, by a subsequent will, attempted to devise the same
property which was formerly conveyed to the use of the idol. The Privy
Council upheld the original gift, and the lands are still devoted to the use of
the idol.
after many mercies shewn you, are now appointed to die to-morrow in the
forenoon, give ear and understand, that to-morrow morning the greatest bell
of St. Sepulchre’s shall toll for you in form of and manner of a passing bell,
as is used to be tolled for those that are at the point of death; to the end that
all godly people hearing that bell, and knowing it is for you going to your
deaths, may be stirred up heartily to pray to God to bestow his grace and
mercy upon you whilst you live. I beseech you for Jesus Christ’s sake to
keep this night in watching and prayer, to the salvation of your own souls,
while there is yet time and place for mercy; as knowing to-morrow you
must appear before the judgment seat of your Creator, there to give an
account of things done in this life, and to suffer eternal torments for your
sins committed against Him, unless upon your hearty and unfeigned
repentance you find mercy through the merits, death, and passion of your
only mediator and advocate Jesus Christ, who now sits at the right hand of
God to make intercession for as many of you as penitently return to him.’
“On the morning of execution, as the condemned criminals pass by St.
Sepulchre’s churchyard to Tyburn, he tolls his bell again and the cart
stopping, he adds, ‘All good people pray heartily unto God for these poor
sinners, who are now going to their death, for whom this great bell doth toll.
You that are condemned to die, repent with lamentable tears; ask mercy of
the Lord for the salvation of your own souls, through the merits, death, and
passion of Jesus Christ, who now sits at the right hand of God, to make
intercession for as many of you as penitently return unto Him.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com