untitled

(John Hannent) #1

  1. Switch to IE and press F5.
    The page is refreshed when you press F5.


The browser window refreshes by reloading your .htm file, and you see
here too the green words that you requested.

Using Word to create Web pages isn’t difficult. If you have some Word docu-
ments that you want to add to a Web site, using Word’s Save As Web Page
feature comes in handy. Editing the HTML code in the Script Editor built into
Word 2003 is efficient, too: It even has a debugger in the editor.

Creating an External Cascading Style Sheet ..............................................


Now you build an external CSS file, reference it from within the Word .htm file
you just built, and use the !Importantcommand to override the embedded
styles with your external styles in the CSS file.

Don’t be too disturbed if CSS terminology shifts around. For example, this
!Importantcommand is called four different things by four different computer-
book authors I’ve read: Sometimes it’s a property, rule, value, or declaration.
The official W3 site (www.W3.org) is supposed to have the final word on mat-
ters like this, but even they are inconsistent. They refer to !Importantas a
rule, but also describe !and Importantas keywords. Whatever. For years
now, whenever Microsoft cannot figure out a classification for a language

Figure 3-5:
Word allows
you to see
the results
of any
editing you
do in the
Script Editor
to the HTML
code by
clicking this
Refresh
toolbar.


Chapter 3: Up and Running with Selectors 59

Free download pdf