15.04.2018 Views

programming-for-dummies

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

478<br />

The Structure of a Stylesheet<br />

type of text you want to <strong>for</strong>mat such as heading 1 text (defined by the <br />

and tags), such as<br />

<br />

<br />

<br />

So if you wanted to display the color red <strong>for</strong> all heading 1 text, your style<br />

would look like this:<br />

<br />

<br />

This text appears in the title bar.<br />

<br />

<br />

<br />

<br />

<br />

<br />

This heading is defined by the style.<br />

<br />

<br />

You can define multiple styles that define additional attributes, such as<br />

✦ Border<br />

✦ Font-family<br />

✦ Text-align<br />

The following stylesheet defines text in both the heading and the <br />

paragraph text:<br />

<br />

<br />

This text appears in the title bar.<br />

<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!