Chapter 15. JavaScript and CSS
After reading this chapter, you'll be able to
Understand the basics of Cascading Style Sheets (CSS).
Understand the relationship between JavaScript and CSS.
Use JavaScript to change the style of an individual element.
Use JavaScript to change the style of a group of elements.
Use JavaScript to provide visual feedback on a Web form using CSS.
What Is CSS?
Cascading Style Sheets (CSS) is a method for specifying the look and feel of a Web page. Items such as color, fonts, and layout can all be applied using CSS.
Figure 15-1 shows a basic Web page. It's fairly boring—or at least the layout is.
Figure 15-1. A basic Web page with ...
Get JavaScript Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.