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

Chapter 14. Setting up Style Sheets > Creating an Internal Style Sheet

Creating an Internal Style Sheet

Internal style sheets are ideal for individual pages with lots of text. They let you set the styles at the top of your page that should be used throughout an HTML document. If you plan to apply the style sheet to more than one page, you're better off using external style sheets (see page 246).

To create an internal style sheet:

1.
At the top of your HTML document, between the <HEAD> and </HEAD> tags, type < STYLE>.

2.
Type the name of the tag whose properties you wish to define (H1, P, or whatever).

3.
Type { to mark the beginning of this tag's properties.

4.
Define as many properties as desired for this tag, using the steps described on pages 257–290. Separate each property with a semicolon.

5.
Type } to mark the end of this tag's properties.

6.
Repeat steps 2–5 for each tag for which you wish to define properties.

7.
Type </STYLE> to complete the style sheet.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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