Build Your Own Website The Right Way Using HTML CSS 3rd Edition Ian Lloydpdf download
Build Your Own Website The Right Way Using HTML CSS 3rd Edition Ian Lloydpdf download
or textbooks at https://ebookultra.com
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: business@sitepoint.com
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
GIOACCHINO ROSSINI.
Reproduction of a lithograph by A. de Bayalos,
made from a portrait by Dupré. Rossini in
middle life. Portraits in spandrel are,
Grisi. Pasta.
Garcia Viardot.
Rubini. Curioni. Mario.
Tamburini. Lablache.
Meanwhile, when the bad humor of the Romans was fairly over, and
the Barber established in public favor, Rossini prepared to go to
Naples in response to a call from Barbaja. Immediately on his return
he set to work, giving first to the Fiorentini theatre a little work
entitled la Gazzetta, then writing for the San Carlo his Otello, which
achieved a considerable success and was played by the great artists
Nozzari, David, Garcia, Benedetti and Colbran. He afterwards
returned to Rome where he gave that gem of comic verve, la
Cenerentola, then went to Milan where he wrote for the Scala, la
Gazza ladra, a work little remembered to-day. He then went back to
Naples to give Armida, and again returned to Rome where he
brought out Adelaide di Borgogna, which met with very meagre
success. But he soon made up for this failure by giving at Naples
Moses in Egypt, one of his best works, which was followed by
Ricciardo e Zoraide and Hermione, the libretto of which was taken
from Racine's Andromaque. At the same time he sent to Lisbon the
score of a little comic work which was requested of him by the royal
theatre of that city; Adina, o il Califfo di Bagdad, on the subject of a
French comic opera by Boieldieu, bearing the same title. After having
given at Venice Edoardo e Cristina he again won great success at
Naples with la Donna del Lago, a work full of poetry and originality.
It was at this point that Rossini had reached the fulness of his glory.
Scarcely twenty-seven years of age, he had already written twenty-
nine operas, several of which had achieved a brilliant success, and
his name, popular throughout Italy, was famous in all Europe, which
applauded his works with frenzy. And yet, the success of la Donna
del Lago could not sustain a mediocre work like Bianca e Falerio,
which was coldly received at the Scala, Milan. But the master
regained public favor with his Maometto II. which was received with
enthusiasm at Naples. He went to Rome shortly after to give Matilde
di Shabran, one of the feeblest of his works, and then rose to the
top again with Zelmira, which was very successful, not only at
Naples, but at Vienna where Rossini was invited to direct the
performance of the opera, accompanied by Colbran, then his wife,
who sung the leading part. Finally, he wrote and brought out at
Venice, Semiramide, one of the most remarkable of his works, in
spite of its faults. Rossini counted much, and with reason, on this
score which the Venetians received with a cold reserve. Neither the
richness of the inspiration, nor the variety of the forms, nor the
grandeur of the style which distinguished this noble and superb
work, could overcome the indifference of the public. After a
reception so unjust, a result so contrary to his legitimate hopes,
Rossini, who at that moment was solicited on all sides, did not
hesitate to leave Italy. An engagement was offered him in England;
he accepted it immediately and went to London, passing through
Paris where he formed relations which were soon to bring him back
to that city.
Rossini was to write for the Italian theatre at London an opera
entitled la Figlia dell'aria; he had composed the first act, when the
direction of the theatre failed, and the project was abandoned.
However, his trip to England was far from being unfruitful of results.
Sought after by the highest society, encouraged in every way,
received at court, Rossini, during his five months stay at London
where he excited the liveliest enthusiasm, was able to realize from
the concerts and lessons which he gave with his wife, about 200,000
francs, which was the basis of his future fortune. At the same time,
through the intervention of the French ambassador in England, he
signed an engagement with the minister of the royal house, by
which he accepted the direction of the Théâtre-Italien of Paris at a
salary of 20,000 francs per year, without prejudice to the author's
rights in the works which he might wish to write for that theatre or
for the Opéra.
Rossini found in France the same enthusiastic welcome which had
been given him in England. He composed first a little Italian opera
called il Viaggio a Reims, which was performed on the occasion of
the fêtes given in that city for the coronation of King Charles X. He
next occupied himself with transforming for the French stage two of
his best Italian works, Maometto II. which became at the Opéra le
Siège de Corinthe, and Mosé in Egitto, which was performed at that
theatre under the title of Moïse. In passing from one tongue to the
other, these two works were subject to much remodelling from the
hand of the composer. He changed parts of them, added to them,
strove to render the declamation more clear and precise, finally
forced himself to adapt his inspiration to the necessities of the
French stage and of the musical genius of that country. Success
crowned his efforts, and in the face of that success, Rossini dreamed
of writing a great new work expressly for the Opéra. But first he
brought out at that theatre a pretty little opera in two acts, le Comte
Ory, which was received with great applause, and in which he had
embodied some fragments of the Viaggio a Reims.
ROSSINI ON HIS DEATH BED.
Reproduction of Gustave Doré's celebrated picture, from photograph at
the Paris Opera.
At last came the great work which the public were awaiting with
impatience, William Tell, which was performed Aug. 3, 1829, with
Nourrit, Dabadie, Levasseur, Prévost, Mmes. Cinti-Damoreau, Mori
and Dabadie for the principal interpreters. In writing the score of
William Tell, Rossini had applied his genius to the exigencies of the
French stage, as Gluck had done fifty years before. He had given to
his declamation a breadth hitherto unknown, to his instrumentation
a superb color and éclat, while the dramatic action had acquired with
him a marvellous power, and the wealth and freshness of his
inspiration surpassed all that could be desired. It cannot be denied
that the appearance of William Tell is a luminous date in the history
of music in France, that the success of this masterpiece has never
diminished, and that after more than sixty years it is still as
touching, as pathetic, as grand, as much respected as in the first
days of its existence.
How comes it then that after so complete, so brilliant, so
incontestable a triumph, Rossini should have renounced the theatre
forever, that he should never have wished to repeat so happy an
attempt? That is a mystery which as yet it has been impossible to
solve, and it is certainly a great misfortune for the art, which has
thereby been deprived of untold masterpieces. But the fact remains
that from the 3rd of August, 1829, date of the first performance of
William Tell until the 13th of November, 1868, date of the master's
death, Rossini wrote nothing more for the stage. This does not mean
that he stopped composing; far from it. His compositions on the
contrary are numerous, and some of them very important, but none
are for the theatre. First should be mentioned his religious music: a
Stabat Mater, a Petite Messe solennelle, and a Tantum ergo; then
three choruses for female voices, la Foi, l'Espèrance, la Charitè; le
Chant des Titans for four bass voices; Soirées musicales, comprising
eight ariettes and four duets; and finally a great number of songs
and piano pieces. Earlier, and in the course of his Italian career,
Rossini had written, for different occasions, a number of cantatas
and lyric scenes, the titles of which are: il Pianto d'Armonia per la
morte d'Orfeo; Didone abbandonata; Egle ed Irene; Teti e Peleo;
Igea; Ad onore di S. M. il re de Napoli; Ad onore di S. M.
l'emperatore d'Austria; la Riconoscenza; il Vero Omaggio; i Pastori;
etc.
[
Rossini, whom Weber did not understand, and whom Beethoven did
not wish to know, belongs nevertheless to the race of those grand
creators, and in his veins coursed the blood of a man of genius. At
the period of his birth three great musicians represented principally
that beautiful Italian school so justly celebrated in the last century in
spite of its characteristic defects. These three great musicians were
Guglielmi, Cimarosa and Paisiello; Guglielmi, forgotten to-day even in
his own country, and whom artists themselves no longer know;
Cimarosa, the verve and gaiety of whose genius seemed to reserve
him to a less tragic end; finally Paisiello, whom Rossini was called to
down with his own weapons, in successfully making after him
another il Barbiere di Siviglia, and whose glory was to be somewhat
obscured by the glory of his brilliant rival. As for the others, Niccolini,
Sarti, Portogallo, Gazzaniga, Nasolini, etc., they were undoubtedly
artists of real talent, but devoid of originality and who confined
themselves to following in the path which these great leaders traced
out for them.
Some years later, and after a sort of interregnum, three more great
artists were coming to fill the vacant place, and to govern in their
turn the Italian musical world. Rossini, Bellini, Donizetti—three
geniuses quite distinct from each other, not only from the standpoint
of the nature of their personal inspiration, but also as regards the
form with which they clothe their ideas, were coming to throw a new
lustre, unhappily the last, over that Italian school so glorious for two
centuries, and of which the author of Rigoletto and Aïda remains to-
day the venerable and last representative. Rossini, a brilliant and
luminous genius, Bellini, of a pensive, poetic and tender nature,
Donizetti, nervous and expansive in temperament, all were called to
take place in the first rank, with this distinction, that the first always
preserved an evident advantage, and that he alone brought into the
art a new and characteristic note.
And yet for years past Rossini has been spoken of slightingly, his
genius has not been understood, his worth has been denied and
these wrongs are carried on at the present hour. Certain adepts of a
new school, who affect to disparage all that was done before them,
are ready to drag him to the gibbet without even giving him credit
for what they owe him,—directly or indirectly. They do not seem to
have the least idea that it is Rossini who has emancipated musical
art as applied to the theatre; that it is Rossini who has given
freedom to melodic form; that it is Rossini who has substituted for
the majestic and uniform solemnity of the ancient lyric declamation,
a rational diction, with an expression more vivacious, more intense
and more vigorous; that it is Rossini who, by the movement and
variety communicated to the rhythm, has given to the musical
phrase the natural sentiment and warmth of action which it too
often lacked; that it is Rossini to whom we owe the richness and the
splendors of the modern dramatic orchestra. Who knows if that
admirable orchestra of Wagner, to which unhappily everything is
sacrificed, would exist to-day had it not been for Rossini? Whatever
may be his faults—and assuredly he has them—we can afford to
pardon them all in consideration of the incomparable qualities of this
great man.
During nearly half a century Rossini has reigned supreme on all the
stages of the world. Wherever there existed an Italian theatre, there
were played and sung the works of Rossini: Otello, Semiramide,
Mosé, il Barbiere, la Gazza ladra, Cenerentola, l'Italiana in Algeri, la
Donna del Lago, Maometto. If all his serious works are not complete
and perfect, at least all of them contain superb parts. Witness Mosé,
what grandeur, what power and what majesty! Witness Otello, what
spirit, what vigor and what boldness! Witness Semiramide, what
color, what brilliancy and what splendor! However, there are grave
faults to be found with Rossini's serious operas; in the first place a
lack of unity, and also certain weaknesses which by their proximity,
militate against some really admirable pages; then the abuse of
vocalization and of the ornate style, absolutely incompatible with the
purely dramatic element; finally, the occasional lack of real emotion
and the frequent absence of pathos, an absence so complete that it
may justly be said of Rossini that he never knew how to sing of love.
And yet, by the side of these grave faults are qualities so grand, an
inspiration so rich, a style so noble, a phrase so elegant, an
orchestra so vigorous and always so full of interest, that the works
though imperfect in their ensemble, have been able through certain
sublime portions to win very great success.
But the place where Rossini is complete and inimitable is in opera
bouffe. Il Barbiere is certainly a masterpiece, and Cenerentola comes
very near being one. A wonderful imagination, gaiety carried
sometimes to the point of folly, an ardor and quickness of inspiration
that was simply prodigious, together with an instrumentation always
new, always piquant, always of an extreme elegance; such are the
qualities which characterized Rossini's light music, and which make it
still as young and fresh as when it first appeared, eighty years ago.
ROSSINI.
Caricature bust by Dantan in the Carnavalet Museum. Paris.
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