Skip to Content
HTML and CSS: Visual QuickStart Guide, Eighth Edition
book

HTML and CSS: Visual QuickStart Guide, Eighth Edition

by Elizabeth Castro, Bruce Hyslop
August 2013
Beginner content levelBeginner
576 pages
20h 24m
English
Peachpit Press
Content preview from HTML and CSS: Visual QuickStart Guide, Eighth Edition

19. Adding JavaScript

While HTML defines your webpage’s content and CSS defines the way it looks, JavaScript defines special behavior. You can’t build a site without HTML (or CSS if you want it to look appealing), but JavaScript is not required. In most cases, JavaScript features enhance your visitor’s experience—they add to the core experience defined by your HTML and CSS. (See “Progressive Enhancement: A Best Practice” in the book’s introduction.)

You can write simple JavaScript programs to show and hide content, and you can write more complicated ones that load data and update your page while your visitor is viewing it. You can build carousels and slideshows ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HTML and CSS Visual QuickStart Guide, 9th Edition

HTML and CSS Visual QuickStart Guide, 9th Edition

Joe Casabona
HTML and CSS

HTML and CSS

Rheinwerk Publishing, Inc, Jürgen Wolf

Publisher Resources

ISBN: 9780133438932Purchase book