Chapter 4. Using CSS with HTML
In the first part of this book, you created your first style sheet. This gave you some hands-on experience working with CSS, as well as a global feel for the language, without getting into extra details.
The remaining parts of this book are designed to give you a more in-depth and detailed review and examples of using CSS. In this chapter, you learn about:
Using the STYLE element to embed CSS style sheets in HTML documents
Linking and importing external style sheets within HTML documents
Inserting inline styles directly into HTML elements
Using class, ID, and contextual selectors to create your own specialized styles
Using HTML comments and CSS comments in your pages
The importance of separating appearance from structure ...
Get Cascading Style Sheets (CSS) by Example 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.