Complete Download Start Programming Using HTML CSS and JavaScript 1st Edition Iztok Fajfar (Author) PDF All Chapters
Complete Download Start Programming Using HTML CSS and JavaScript 1st Edition Iztok Fajfar (Author) PDF All Chapters
com
https://ebookname.com/product/start-programming-using-html-
css-and-javascript-1st-edition-iztok-fajfar-author/
OR CLICK HERE
DOWLOAD NOW
https://ebookname.com/product/security-for-web-developers-using-
javascript-html-and-css-early-release-raw-unedited-john-paul-mueller/
ebookname.com
https://ebookname.com/product/html-css-and-javascript-mobile-
development-for-dummies-1st-edition-william-harrel/
ebookname.com
https://ebookname.com/product/building-android-apps-with-html-css-and-
javascript-2nd-edition-jonathan-stark/
ebookname.com
Faulkner and Love The Women Who Shaped His Art 2009 1st
Edition Prof. Judith L. Sensibar
https://ebookname.com/product/faulkner-and-love-the-women-who-shaped-
his-art-2009-1st-edition-prof-judith-l-sensibar/
ebookname.com
The Future of Energy 1st Edition Brian F. Towler
https://ebookname.com/product/the-future-of-energy-1st-edition-brian-
f-towler/
ebookname.com
https://ebookname.com/product/god-s-day-of-judgment-the-real-cause-of-
global-warming-2nd-edition-douglas-b-vogt/
ebookname.com
https://ebookname.com/product/monitoring-in-neurocritical-care-1st-
edition-peter-d-le-roux/
ebookname.com
https://ebookname.com/product/land-law-text-cases-and-materials-2nd-
edition-ben-mcfarlane/
ebookname.com
https://ebookname.com/product/balanced-scorecard-step-by-step-
maximizing-performance-and-maintaining-results-2nd-edition-paul-r-
niven/
ebookname.com
Evangellcals and Catholics in Nineteenth century Ireland
James H. Murphy (Editor)
https://ebookname.com/product/evangellcals-and-catholics-in-
nineteenth-century-ireland-james-h-murphy-editor/
ebookname.com
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
Discovering Diverse Content Through
Random Scribd Documents
XXII
THE GENERAL THEORY
BY VARIOUS CONTRIBUTORS
When Dorothy was carried by the cyclone from her home in Kansas to the
land of Oz, together with her uncle’s house and her little dog Toto, she
neglected to lower the trap door over the hole in the floor which formerly
led to the cyclone cellar and Toto stepped through. Dorothy rushed to the
opening expecting to see him dashed onto the rocks below but found him
floating just below the floor. She drew him back into the room and closed
the trap.
The author of the chronicle of Dorothy’s adventures explains that the same
force which held up the house held up Toto but this explanation is not
necessary. Dorothy was now floating through space and house and dog
were subject to the same forces of gravitation which gave them identical
motions. Dorothy must have pushed the dog down onto the floor and in
doing so must herself have floated to the ceiling whence she might have
pushed herself back to the floor. In fact gravitation was apparently
suspended and Dorothy was in a position to have tried certain experiments
which Einstein has never tried because he was never in Dorothy’s unique
position.]188
* * *
* * *
* * *
* * *
In the ordinary “analytical geometry,” the position and motion of all the
points considered is referred to a rigid “body” or “frame of reference.” This
usually consists of an imaginary room of suitable size. The position of any
point is then given by three numbers, i.e., its distances from one side wall
and from the back wall and its height above the floor. These three numbers
can only give one point, every other point having at least one number
different. In four-dimensional geometry a fourth wall may be vaguely
imagined as perpendicular to all three walls, and a fourth number added,
giving the distance of the “point” from this wall also. Since “rigid” bodies
do not exist in gravitational fields the “frame of reference” must be “non-
rigid.” The frame of reference in the Gaussian system need not be rigid, it
can be of any shape and moving in any manner, in fact a kind of jelly. A
“point” or “event” in the four dimensioned world is still given by four
numbers but these numbers do not represent distances from anywhere; all
that is necessary is that no two events shall have exactly the same four
numbers to represent them, and that two events which are very close
together shall be represented by numbers which differ only slightly from
one another. This system assumes so little that it will be seen to be very
wide in its scope; although to the ordinary mind, what is gained in scope
seems more than that lost in concreteness. This does not concern the
mathematician, however, and by using this system he gains his object,
proving that the general laws of nature remain the same when expressed in
any Gaussian coordinate system whatever.]220
* * *
* * *
The general theory is an extension of the special theory which enables the
law of gravitation to be deduced. Not in Newton’s form, it is true, but in a
better form, that is, one that accounts for two important facts otherwise not
explained. But it is a far more general theory that indicated above. It is a
complete study of the relations between laws expressed by means of any
four coordinates (of which three space and one time is a special case), and
the same laws expressed in the four coordinates of a system having any
motion whatever with respect to the first system. By restricting this general
study in accordance with certain postulates about the nature of the universe
we live in, we arrive at a number of conclusions which fit more closely with
observed facts that the conclusions drawn from Newton’s theory.]221
Colophon
Availability
This eBook is for the use of anyone anywhere at no cost and with
almost no restrictions whatsoever. You may copy it, give it away or
re-use it under the terms of the Project Gutenberg License included
with this eBook or online at www.gutenberg.org .
The text was produced from the 1921 first edition. Except for the title
page, the illustrations were taken from the 1922 second edition.
Those are the same as those of the first edition, but were available in
a significantly better scan-quality. Note that textual changes made in
the second edition have not been applied to this transcription of the
first edition.
Metadata
Revision History
2020-08-29 Started.
External References
Corrections
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
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