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 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.