Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

About style sheets

HTML is a simple language intended to control the structure of information, not its presentation. Style sheets let Web designers enhance HTML's basic formatting by using styles to position text precisely, control type, and format elements on the page.

Cascading style sheets (CSS for short) are a simple way to add style to HTML documents and enhance the basic formatting of HTML elements. A style sheet is a set of stylistic rules that describe how HTML documents should appear to viewers. In HTML code, a rule is a statement about a stylistic aspect of one or more elements, in which a selector specifies what elements a declaration—consisting of a property and its value—will affect. For example, the style rule h1 { color : red } makes all head level 1s in a document appear red.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint