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

Hour 16. Using Style Sheets > Specifying Inline Styles

Specifying Inline Styles

In some situations, you might want to specify styles that will be used in only one Web page. You can then enclose a style sheet between <style> and </style> tags and include it in the beginning of an HTML document, between the </head> and <body> tags. No <link /> tag is needed, and you cannot refer to that style sheet from any other page (unless you copy it into the beginning of that document, too).

If you want to specify a style for only a small part of a page, you can go one step further and put a style attribute within a <p>, <div>, or <span> tag.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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