Chapter 3. Making sense of CSS

In matters of style, swim with the current; in matters of principle, stand like a rock.

Thomas Jefferson

As you learned in Chapter 2, an HTML page is made up of a bunch of elements that together define the content and layout of what the browser will actually display. Each element of the HTML markup language has its own semantics and syntax. So an INPUT element, for example, indicates an input field, and additional attributes specify shape and behavior of the input field. The display of these elements is usually determined by the specific browser.

So far, nothing has been said about how to give these elements a custom appearance. Nonetheless, changing font, colors, margins, and sizes of HTML elements is definitely possible—and ...

Get Start Here! Build Windows 8 Apps with HTML5 and JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.