• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 17. Working with Style Sheets > Defining and Using CSS Styles

Defining and Using CSS Styles

To use styles on a page, you first need to define the styles, using the <style> tag, and then indicate the styles that should be used with various HTML elements.

The main HTML tag you'll use to define style sheets is the <style> tag, which starts a listing of styles. The initial <style> tag specifies the type of style sheet, and the </style> tag ends the style definitions. For example, the following tag starts a style definition using CSS:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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