CSS

HTML is the most popular document format on the Web, and it is used in most of the examples in this book.

As we explained in The Web and HTML, HTML elements enable Web-page designers to mark up a document's structure. The HTML specification lists guidelines on how browsers should display these elements. For example, you can be reasonably sure that the contents of a strong element will be displayed as boldfaced. Also, you can pretty much trust that most browsers will display the content of an h1 element using a big font size – at least bigger than the p element and bigger than the h2 element. But beyond trust and hope, you don't have any control over your text's appearance.

<%= import('ch02/rules_and_css.html.erb')%>

Index