Start Programming Using HTML CSS and JavaScript 1st Edition Iztok Fajfar (Author) instant download
Start Programming Using HTML CSS and JavaScript 1st Edition Iztok Fajfar (Author) instant download
https://ebookname.com/product/start-programming-using-html-css-
and-javascript-1st-edition-iztok-fajfar-author/
https://ebookname.com/product/security-for-web-developers-using-
javascript-html-and-css-early-release-raw-unedited-john-paul-
mueller/
https://ebookname.com/product/html-css-and-javascript-mobile-
development-for-dummies-1st-edition-william-harrel/
https://ebookname.com/product/building-android-apps-with-html-
css-and-javascript-2nd-edition-jonathan-stark/
https://ebookname.com/product/melancholy-medicine-and-religion-
in-early-modern-england-reading-the-anatomy-of-melancholy-1st-
edition-mary-ann-lund/
Scientists Experts and Civic Engagement Walking a Fine
Line Amy E. Lesen
https://ebookname.com/product/scientists-experts-and-civic-
engagement-walking-a-fine-line-amy-e-lesen/
https://ebookname.com/product/the-encyclopedia-of-stress-and-
stress-related-diseases-2nd-edition-facts-on-file-library-of-
health-and-living-ada-p-kahn/
https://ebookname.com/product/nonlinear-partial-differential-
equations-for-scientists-and-engineers-second-edition-lokenath-
debnath/
https://ebookname.com/product/an-introduction-to-language-1st-
edition-kirk-hazen/
https://ebookname.com/product/message-in-a-mobile-mixed-messages-
tales-of-missing-and-mobile-communities-at-the-university-of-
khartoum-1st-edition-siri-lamoureaux/
Allostery Methods and Protocols 1st Edition James K.
Kranz
https://ebookname.com/product/allostery-methods-and-
protocols-1st-edition-james-k-kranz/
START
PROGRAMMING
using HTML, CSS,
and JAVASCRIPT
CHAPMAN & HALL/CRC
TEXTBOOKS IN COMPUTING
Series Editors
This series covers traditional areas of computing, as well as related technical areas, such as
software engineering, artificial intelligence, computer engineering, information systems, and
information technology. The series will accommodate textbooks for undergraduate and gradu-
ate students, generally adhering to worldwide curriculum standards from professional societ-
ies. The editors wish to encourage new and imaginative ideas and proposals, and are keen to
help and encourage new authors. The editors welcome proposals that: provide groundbreaking
and imaginative perspectives on aspects of computing; present topics in a new and exciting
context; open up opportunities for emerging areas, such as multi-media, security, and mobile
systems; capture new developments and applications in emerging fields of computing; and
address topics that provide support for computing, such as mathematics, statistics, life and
physical sciences, and business.
Published Titles
START
PROGRAMMING
using HTML, CSS,
and JAVASCRIPT
Iztok Fajfar
University of Ljubljana
Slovenia
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
© 2016 by Taylor & Francis Group, LLC
CRC Press is an imprint of Taylor & Francis Group, an Informa business
This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been
made to publish reliable data and information, but the author and publisher cannot assume responsibility for the valid-
ity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright
holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this
form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may
rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or uti-
lized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopy-
ing, microfilming, and recording, or in any information storage or retrieval system, without written permission from the
publishers.
For permission to photocopy or use material electronically from this work, please access www.copyright.com (http://
www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923,
978-750-8400. CCC is a not-for-profit organization that provides licenses and registration for a variety of users. For
organizations that have been granted a photocopy license by the CCC, a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for
identification and explanation without intent to infringe.
Visit the Taylor & Francis Web site at
http://www.taylorandfrancis.com
and the CRC Press Web site at
http://www.crcpress.com
To my family
Contents
Acknowledgments xi
Introduction xiii
3 Presentation 35
3.1 Homework Discussion . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.2 Setting up a Web Server . . . . . . . . . . . . . . . . . . . . . . . . . 36
3.3 Introducing CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.4 CSS Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3.5 CSS Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
3.6 CSS Pixel Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3.7 Homework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
vii
4.2 Class Selectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.3 ID Selectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4.4 Grouping Selectors . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4.5 Nesting Selectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
4.6 The HTML Ancestry Tree . . . . . . . . . . . . . . . . . . . . . . . 61
4.7 Inheritance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
4.8 Determining Style Specificity . . . . . . . . . . . . . . . . . . . . . . 64
4.9 Relative Sizes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.10 Homework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
6 Behavior 101
6.1 Homework Discussion . . . . . . . . . . . . . . . . . . . . . . . . . 101
6.2 Server Side Includes . . . . . . . . . . . . . . . . . . . . . . . . . . 104
6.3 Introducing JavaScript . . . . . . . . . . . . . . . . . . . . . . . . . 105
6.4 Values and Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
6.5 Operators and Expressions . . . . . . . . . . . . . . . . . . . . . . . 114
6.6 Concluding Remarks and Homework . . . . . . . . . . . . . . . . . . 124
viii Contents
9.5 String Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
9.6 Homework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Contents ix
C HTML Mini Reference 305
C.1 Root Element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
C.2 Document Metadata . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
C.3 Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
C.4 Sections and Structure . . . . . . . . . . . . . . . . . . . . . . . . . 311
C.5 Grouping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
C.6 Text-Level Semantics . . . . . . . . . . . . . . . . . . . . . . . . . . 321
C.7 Embedded Content . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
C.8 Tabular Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
C.9 Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
C.10 Global Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
C.11 Event-Handler Attributes . . . . . . . . . . . . . . . . . . . . . . . . 338
x Contents
Acknowledgments
A huge thank you goes to the guys at Taylor and Francis, especially to my editor Randi
Cohen for her enthusiasm for the whole project, my project coordinator Ashley We-
instein, who oversaw production attentively, and technical reviewers for their detailed
comments making the whole book more enjoyable. Many thanks also to the proof-
reader for correcting typos and grammar. Indeed, it was a great pleasure to work with
such a professional team.
Honestly, all this wouldn’t have happened were it not for Igor and the other guys from
the morning-coffee crew, who suggested that I should really write a book. Thanks,
chaps, it cost me a year of my life. Thank you to all my amazing students for sitting
through my programming lectures and asking nasty questions. Man, how should I
know all that? I shall not forget to also thank the other teaching staff from the team.
The joy of working together is immeasurable. I’m deeply indebted to Žiga, who had
painstakingly read the whole manuscript before releasing it to the wild. (I sincerely
hope you spotted all the silly mistakes so I don’t make a fool of myself.) Thank you,
Andrej, for technical advice on preparing the camera-ready PDF. Those are really
details that make a difference. A thousand thanks go to Tanja and Tadej for that little
push that did the trick. You are terrific!
I also wish to extend my considerable gratitude to everyone that gave away their pre-
cious time, energy, and invaluable expertise answering questions on forums, posting
on blogs, and writing all those wonderful LATEXpackages. It’s impossible to list you
all by name because I’m contracted for only 400 or so pages.
A colossal thank you goes out to my mom and dad for instantiating and personalizing
me. It wasn’t the easiest assignment in the world but you did a marvelous job! Many
thanks to my second parents, Dana and Ivo, for telling me that I should also eat if I am
ever to finish the book. A zillion thanks go out to my close family. Thank you, Erik, for
patiently checking which page I am on with an I-want-my-daddy-back determination;
and thank you, Monika, for tons of understanding and supportive coffee mugs. I love
you!
I am also thankful for the support of the Ministry of Education, Science, and Sport of
the Republic of Slovenia within the research program P2-0246—Algorithms and Opti-
xi
mization Methods in Telecommunications, which made possible some of the research
for this book.
And, of course, thank you, the reader. Without you, this book wouldn’t make much
sense, would it?
xii Acknowledgments
Introduction
Easy to Use
Normally, putting honey in my tea is not a particularly demanding task, but that morn-
ing my hand was paralyzed in astonishment, trying to do its routine job of pouring
some honey in the steaming cup. Honey labels usually say things like “All Natural,”
“Contains Antioxidants,” or “With Grandma’s Recipe Book.” Over time, I’ve got used
to more absurd labels like “Improved New Flavor” or “Gathered by Real Bees.” The
label that knocked me out was surprisingly plain, with an award-winning message
printed on it: “Easy to Use.” I don’t recall honey ever being hard to use, except maybe
when it crystallizes, or when I was six months old, but that’s probably not exactly
what the author of the message had in mind.
You can also buy programming books that promise easy and quick learning, even as
fast as in 24 hours. An average adult can read a novel in 24 hours. But let’s face it, no
one can read—let alone understand and learn—a 500-page technical book in 24 hours.
While using honey is not difficult even when it doesn’t explicitly say so, learning to
program is not easy. It can be fun if you’re motivated and have decent material to
study from, but it’s also an effort. If you’re not ready to accept that, then this book
is not for you. Otherwise, I invite you to join Maria, Mike, and me at exploring the
exciting world of computer programming. It’s going to be fun but it’s also going to be
some work.
xiii
of each meeting.
The general structure of the book is multilayered: the basic language syntax and rules
are fleshed out with contents and structure while still keeping things simple and man-
ageable, something that many introductory textbooks lack.
The main body of the text is accompanied by five appendices. The first of them con-
tains a solution of the last homework, the second summarizes (also with examples)
some major directions in which you can continue your study, including hints on some
of the relevant sources. The last three appendices are abbreviated references of the
three languages used in the book.
There will be situations when you need to use yet more languages and technologies in
order to get the job done. Some such situations are gently dealt with in this book. For
example, you will learn just enough about a Server Side Includes language to be able
to include external HTML code, which will save you a tremendous amount of time
and energy.
If you have been exposed to programming before, you might find the book useful
as well. Today, many people learn from examples and forums, and thus acquired
knowledge is mostly skills and not much theory. If you ever want to build more
serious software, you need a firm and systematic understanding of what is going on.
You need a framework to which you can systematically attach your partial skills to
form a sound structure of connected knowledge. Hopefully, this book can give you
this as well.
Last but not least, if you’re a teacher of an introductory programming course, you
might find a handful of useful examples and approaches for your classes on the few
hundred pages that follow.
But most likely, as there are as many learning styles as there are learners, you will
have to find out for yourself whether or not this book is for you.
xiv Introduction
For Your Safety
This book is not about cutting-edge web technologies, so you don’t need any pro-
tective equipment. It is more about general computer programming and some web-
related principles using the mainstream web languages HTML, CSS, and JavaScript
as examples. Some of the principles are over 40 years old, but are extremely important
because they allow you to write cleaner and more easily maintainable code, and they
will not go away just like that.
It’s a busy world, and the sixth edition of ECMAScript standard (the standardized
version of JavaScript) has just entered the official publication process. The good news
is that it only introduces additions to its predecessor, so the essential concepts stay.
Also, while CSS3 isn’t completely finished yet, there already exist some so-called
“level 4” CSS modules. Fortunately, they are also just additions to the CSS standard
and there are no serious plans for a single CSS4 specification on the horizon. This
book pays attention to the basic concepts that have matured with the latest HTML5,
CSS3, and ECMAScript 5 standards to the point where it seems these concepts are
going to persist for some time.
A monospaced font is used for all code listings and everything that you normally
type on a keyboard, including keys and key combinations.
A sans serif italic font is used to indicate URLs and file names and extensions.
Introduction xv
About the Author
Iztok Fajfar got his first computer in the early 1980s, a ZX Spectrum with an amaz-
ing 48 KB of RAM. Computers soon turned into a lifelong fascination and an indis-
pensable companion, assisting him in his professional work and hobbies alike. Iztok
has a PhD degree in electrical engineering from the University of Ljubljana, Slovenia,
where he is currently Associate Professor at the Faculty of Electrical Engineering. His
research topics include evolutionary algorithms, in particular, genetic programming.
He teaches computer programming at all levels, from assembly to object-oriented, and
to all kinds of audience. Now and then he even ventures to explain to his mother-in-
law how to forward an email, and he hasn’t given up yet. He is also a programmer
and writer. Iztok lives with his family in Ljubljana, and when he is not programming,
or teaching, or researching weird stuff, he makes the most yummy pancakes, not to
mention the pizza.
xvii
Meeting 1
Content and Structure
1.1 Opening
Professor: I’m thrilled that you accepted my invitation to help me with a new book
I am researching. There are three languages awaiting us in this course: HTML, CSS,
and JavaScript.
Professor: The languages have been designed for quite specific purposes and work
very differently, so there is little danger in confusing them. At the same time, the three
languages nicely complement each other: HTML holds the structure and content of a
web page, CSS takes care of presentation, and JavaScript is responsible for action. I
like to say that HTML is bones, CSS is flesh, and JavaScript is the brain and muscles
of web programming.
Maria: How much of a chance is there of us learning three languages to the level that
we can use any of them to our advantage?
Professor: You don’t have to be a guru in any of them to start using them effectively.
It’s only important that you know the basic principles. The good news is you don’t
have to install or learn to use any new software. All you need to start off is already
installed on your computer.
Maria: Actually, I use a computer a lot but not for programming. I have never written
a computer program before.
Mike: Yes...?
Professor: I even know people who have learned Finnish. Quite well, to be honest.
1
English and Finnish are examples of natural languages, which people learn to com-
municate with other people. However, if you want to talk to computers, you have to
learn artificial languages so that computers understand and obey you. It’s very similar.
The only difference is that people won’t obey you if you lack charm, while computers
won’t obey you if you’re not accurate. Accuracy is crucial. Similar to both is that it
takes a certain amount of practice before your interlocutor understands you. I won’t
lie to you on this one.
Maria: I’m just starting to learn Spanish and I must use a sign language a lot. I
suppose you cannot use a sign language with a computer.
Professor: That’s true. In natural languages, people use context and even a sign
language to guess what others have to say even though what they say may not be
grammatically correct. Computers don’t do that, though, and that’s the difficult part
of programming. You have to be exact.
Maria: It looks quite straightforward. Are those p’s in the angle brackets like com-
mands?
Professor: You could say that. They are called tags and they instruct or command a
browser to make a paragraph out of the text between them.
Professor: In a way, yes. Tags are like commands in a word processor that allow
you to format paragraphs, headings, and so forth. However, they only specify what to
format, not how to do it.
The start tag is also called the opening tag while the end tag is also called the closing
tag. By the way, the name, or the abbreviation of the name of the element is written
inside the tags. In particular, p stands for a paragraph. The closing tag should have an
additional slash (/) before the element’s name.
In order for a paragraph to show in the browser, we need to add two more things to
get what is generally considered the minimum HTML document. The first line should
be a special declaration called DOCTYPE, which makes a clear announcement that
HTML5 content follows. The DOCTYPE declaration is written within angle brack-
ets with a preceding exclamation mark and the html keyword after it: <!DOCTYPE
html>. Although it looks like a tag, this is actually the only part of an HTML docu-
ment that isn’t a tag or an element. As a matter of fact, this code is here for historical
reasons. I don’t want to kill you with details, but you have to include it if you want
your document to be interpreted by the browser correctly.
One more thing that the minimum document should contain is a <title> element.
This element is necessary as it identifies the document even when it appears out of
context, say as a user’s bookmark or in search results. The document should contain
no more than one <title> element.
Maria: You just showed us what the document code should look like. But I still don’t
know where to type the code and how to view the resulting page.
Professor: It doesn’t matter. Just about any operating systems contains a plain text
editor. Personally, I use Notepad++, a programmer-friendly free text editor (notepad-
plus-plus.org ).
After you type the code, it is important that you save the file with a .htm or .html
extension. While it doesn’t really matter which one you use, it is quite important that
you choose one and stick to it consistently. Otherwise, you could throw yourself into
a real mess. For example, you could easily end up editing two different files (same
names, different extensions) thinking they’re one and the same file.
Notice how the content of the <title> element appears at the top of the browser tag.
Professor: Nothing fatal, to be honest. One of the basic rules of rendering web pages
is that the browser always tries its best to show the content. Of course, if the document
isn’t fully formatted according to the recommendations, the results are sometimes not
in our favor. If you forget the title, then the name of the file containing the document
usually takes over its role. If nothing else, that looks ugly and unprofessional.
Mike: I noticed that an element can contain not only text but another element as well.
For example, you placed the <title> element within the <head> element.
Professor: Good observation! The content of an element can in fact be any valid
HTML conforming to the rules of that specific element. We call putting one element
into another nesting. When an element is nested (contains other HTML elements), it
is important that it contains whole elements, including start and end tags. So if, for
example, an <elementA > starts before an <elementB >, then it must by all means
end after the <elementB >:
<elementA > ... <elementB > ... </elementB > ... </elementA >
The element that is contained inside another element inherits some of its behavior,
and we often say that the contained element is a descendant of its owner, which is in
turn its parent. The direct descendant is also called a child. This concept will become
especially important when we come to styling elements with CSS. Now I only mention
it so that later the terms will already sound familiar to you.
Professor: Oh, yes. A set of three periods is an ellipsis. An ellipsis indicates the
omission of content that is not important for understanding the explanation.
We will soon come back to our last example and furnish it with a little more. For
that purpose we need another element called <meta>. This element is used to pro-
vide additional page description (so-called metadata), which is not displayed on the
page, but can be read by a machine. The information stored in the <meta> element
includes keywords, author of the document, character encoding, and other metadata.
The <meta> element has neither content nor the closing tag:
<meta>
An element that is composed only of the opening tag is called an empty or void ele-
ment.
Mike: I don’t understand that. Where do you put all the information you talked about
if there is no content?
Professor: That’s the job for attributes. An attribute is the means of providing addi-
tional information about an HTML element. For example, by using the src attribute
on the <img> element, one can tell the browser where to find the image to display.
There are two things you should know about attributes: they are always specified after
the element name in the start tag, and they come in name/value pairs like this one:
He has no sooner pronounced the fatal "il resto non dico," when
he seems unable to get out any more; and so it runs—
and the air begins with the forcible and impulsive expression of
this self-consciousness enhanced by rapid instrumentation; Bartolo
feels the injury done to him, and his obligation in honour to avenge
himself, and the sincerity of this feeling invests him with a certain
amount of dignity. But—his character has none of the elements of
true greatness; as soon as he begins to descant on the way in which
he is to outwit Figaro, his grovelling spirit betrays itself; he excites
himself with his own chatter, and complacently announces his own
triumph beforehand. Bartolo's dignity is not, however, a parody on
his true self; the comic element consists in the contrast of the pride
which lays claim to dignity and the small-mindedness which
unwittingly forfeits the claim. The German translations lose the chief
point of the characterisation. Capitally expressed is the original: "coll'
astuzia, coll' arguzia, col giudizio, col criterio, si potrebbe——" here
the orchestra takes up the motif of the words "è basezza," as if to
edge him on, but soon subsides, as he recollects himself: "si
potrebbe, si potrebbe"—suddenly interrupted by "il fatto è serio," to
which the whole orchestra responds with a startling chord;
thereupon he resumes with calm self-confidence: "ma, credete, si
farà," and then launches into the flood of trivialities with which he
seeks to bolster up his courage.
Steffano Mandini, the original Count Almaviva, was considered by
Kelly as one of the first buffos of the day, 15 and Choron used to
hold him up to his scholars as his ideal of a singer. 16 At the
moment when Susanna has hearkened to; his suit, he infers from a
LE NOZZE DI word let fall by her that she has deceived him.
FIGARO.
Injured pride, disappointed hope, and jealousy of
his happier rival, excite him to a pitch of passion which breaks out in
true cavalier fashion with the words (Act III., 2).: "vedrò, mentr' io
sospiro, felice un servo mio!" What a world of expression Mozart has
thrown into these words! While disappointed but unvanquished
passion presses its sting deep into his heart, injured pride flares up
prepared to give place to no other feeling than that of revenge. In
the wonderful passage which follows with renewed force upon the
immediately preceding tones of sharp complaint—[See Page Image]
the change from major to minor brouight about by the chromatic
passage in the middle parts is of inimitable effect. 17 We have
before us the nobleman, feeling his honour affronted because he is
not allowed to injure that of his servant, and there is in the
expression of his revengeful desires and his certainty of victory no
tinge of Figaro's cunning or Bartolo's meanness; the stream of
passion flows full and unmingled, and the noble position of the
Count gives it a certain amount of composure; his weakness excites
regret rather than contempt or even ridicule. The expression of this
air corresponds to the musical conception of the Count throughout
the opera, in making his feelings of injured pride outweigh those of
disappointed desire. Pride, jealousy, or anger, unjustifiable as they
may be in their outbreaks, are always more dignified and nobler
motives than a love-making whose only foundation is licentiousness,
and its only excuse frivolity. He gives free play to this feeling in the
THE COUNT. enchanting duet with Susanna (Act III., 1); but
the situation is rendered endurable to the audience by the
knowledge that Susanna is playing a part to please the Countess.
Mozart has given this little duet a title to be placed in the first rank
of musical works of art by the delicacy with which he has rendered
the mixture of encouragement and coyness in Susanna's demeanour,
her true motives being as clear to the audience as is the
misunderstanding of the Count. The harmonic turns of her evasive
answer to his passionate request, "Signor, la donna ognora tempo ha
di dir si," are masterpieces of musical diplomacy. Even the piquant
conceit by which she answers his urgent questions, "Verrai? non
mancherai?" with "si" instead of "no," and vice versa, to his great
perplexity, has something more than a merely comic signification. 18
It characterises most strikingly the security with which she plays
with his passion as expressed in these eager, flattering requests.
Even here, delight at his hard-won victory predominates over his
sensual impulses.
The sensual element of love plays far too great a part in "Figaro,"
however, to be altogether disregarded in its musical rendering. It
would be a difficult matter to determine how far and in what way
music is capable of giving artistic expression to this side of the
tender passion; but it cannot be disputed that Mozart has in this
respect competed successfully with the sister arts of painting and
poetry. In Susanna's so-called garden air (Act IV., 5) her longing for
her betrothed is expressed with all the tender intensity of purest
beauty; but the simple notes, cradled as it were in blissful calm, that
seem to be breathed forth "soft as the balmy breath of eve," glow
with a mild warmth that stirs the heart to its depth, entrancing the
mind, and intoxicating the senses like the song of the nightingale.
The pizzicato accompaniment of the air fitly suggests a serenade. It
gives the voice free scope, and the sparely introduced wind
instruments, as well as the tender passage for the first violin
towards the close, only serve to give a finer emphasis to the full
LE NOZZE DI body of the voice. The impression of longing
FIGARO.
delight is intensified by the simplicity of the
harmonies, as if from fear of disturbing by any sudden change the
calm bliss of the passing moment. But what analysis can penetrate
these mysteries of creative genius 19 Mozart was right to let the
feelings of the loving maiden shine forth in all their depth and purity,
for Susanna has none but her Figaro in her mind, and the
sentiments she expresses are her true ones. Figaro in his hiding-
place, listening and suspecting her of waiting the Count's arrival,
throws, a cross light on the situation, which, however, only receives
its full dramatic signification by reason of the truth of Susanna's
expression of feeling. Susanna, without her sensual charm is
inconceivable, and a tinge of sensuality is an essential element of
her nature; but Mozart has transfigured it into a noble purity which
may fitly be compared with the grandest achievements of Greek
sculpture.
Nancy Storace (1761-1814), "who possessed in a degree unique at
that time, and rare at any time, all the gifts, the cultivation, and the
skill which could be desired for Italian comic opera," 20 seems to
have been a singer to whom Mozart was able to intrust the
rendering of this mixture of sentiment and sensuality. When "Figaro"
was reproduced in July, 1789, he wrote for Adriana Ferrarese del
Bene, 21 a less refined and finished singer, the air "Al desio di chi
RONDO FOR t'adora" (577 K.), retaining the accompanied
SUSANNA.
recitative. 22 The words of this song—
Un moto di gioja
Mi sento nel petto,
Che annunzia diletto
In mezzo il timor.
Speriamo che in contento
Finisca l' affanno,
Non sempre è tiranno fato ed amor—
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.
ebookname.com