For Your Safety
This book is not about cutting-edge web technologies, so you don’t need any pro-
tective equipment. It is more abo ut general c omputer programming and some web-
related principles using the mainstream web languages HTML, CSS, and JavaScript
as examples. So me of the principles are over 40 year s old, but are extremely important
because they allow you to write cleane r and more easily maintainable code, and they
will not go away just like that.
It’s a busy world, and the sixth edition o f ECMAScript standard (the standard iz ed
version of JavaScript) has just entered the official pub lication process. The good news
is that it o nly introduces additions to its predecessor, so the essential concepts stay.
Also, while CSS3 isn’t completely finished yet, there alread y exist some so-called
“level 4” CSS modules. Fortu nately, they are also just additions to the CSS standard
and there are no serious plans for a single CSS4 spe cification on the horizon. This
book pays attention to the basic co ncepts that have matured with the latest HTML5,
CSS3, an d ECMAScript 5 stan dards to the point where it seems these concepts are
going to persist for some time.
The Software Used
In r esearching this book, I used Google Chrome and N otepad++ v6 .5.3 (notepad-plus-
plus.org
) on a Windows 7 Profession al SP1 64bit operating system. I also used the
EasyPHP DevServer 13.1 VC11 web development server (
www.easyphp.org). How-
ever, you will be able to follow most of the examples and experiments in this book
using any modern browser and plain text editor. They are already installed on your
compute r, so you can start experimenting right away.
Conventions Used in This Book
The following typographical conventions are used in this book:
A monospaced font is used for all code listings and everything that you normally
type on a keyboard, including keys and key combinations.
A monospaced italic font is used as a general placeholder to mark items that
you should replace with an a ctual value or expression in your code.
An italic font is used to indicate the first appearance of a term, or as an emphasis.
A sans serif font is used to indicate a menu item.
A sans serif ital ic font is used to indicate URLs and file names and extensions.
Feedback and Supporting Online Ma terial
I deeply a ppreciate having any comments, suggestions, or errors found brought to my
attention at the email address
start-programming@fajfar.eu. You will find source c ode
of the example s in this book and some additional materials an d problems for each
chapter at
fajfar.eu/start-programming.
Introduction xv