tailieunhanh - HTML cơ bản - p 14

Elements of Style Cascading Style Sheets CSS Selectors Pseudo-Classes and Pseudo-Elements Typography Colors Background Properties Text Properties Box Properties List Styles CSS Positioning Other CSS Properties From the Library of Wow! eBook Chapter 3 ascading Style Sheets (CSS) is a major piece of the art of web programming. It is the technology that gives a web page its distinctive look and feel. In this chapter you will learn how to use CSS to modify the layout and typography of a web page to create web pages with style. C Cascading Style Sheets A cascading style sheet is a set of statements that applies rules to the various elements of. | Elements of Style Cascading StyLE Sheets CSS Selectors Pseudo-Classes and Pseudo-Elements TypoGRAPHy Colors Background Properties Text Properties Box Properties List StyLES CSS Positioning Other CSS Properties From the Library of Wow eBook Chapter 3 Cascading Style Sheets CSS is a major piece of the art of web programming. It is the technology that gives a web page its distinctive look and feel. In this chapter you will learn how to use CSS to modify the layout and typography of a web page to create web pages with style. Cascading StyLE Sheets A cascading style sheet is a set of statements that applies rules to the various elements of a web page specifying the layout typography and other properties that those elements should assume when displayed by web browsers or by WYSIWYG editing software. We speak of these properties as being in the presentation layer of the web page as distinct from the semantic description provided by the HTML markup of the page s content. CSS allows us to create web pages that are more visually striking. At the same time they are simpler easier to maintain more accessible and friendlier to search engine robots and other user agents. These entities are concerned more with the meaning and relevance of content on the Web than with how a particular page looks. CSS also lets you create a web page with different presentation rules depending on the type of device or medium accessing the page such as a text-to-speech reader for the visually impaired. The CSS statements associated with a web page can appear in one or more places 115 From the Library of Wow eBook 116 Chapter 3 Elements of Style In files referenced by link elements in HTML documents In styl e elements in the head of an HTML document In styl e attributes in individual markup elements Putting CSS statements in separate CSS files allows those statements to be used throughout the website. A CSS file is a text file containing only CSS statements. No HTML is allowed. A link element in an .