untitled

(John Hannent) #1

  1. Choose View and notice that Web Layout is now the active view
    instead of the previous Normal view.
    Now take a look at your new Web page in Internet Explorer by double-
    clicking MyFirst.htm file in Windows Explorer.


Your page appears, but it’s no longer a .doc file. It’s now an HTML file
that a browser can read, understand, and display, as shown in Figure 3-3.

Now you’re ready to take a look at the HTML code behind this page. Choose
View➪HTML Source in Word. A special Microsoft Script Editor opens, display-
ing your HTML in all its glory. Even though this is the “pure” HTML version of
this page (“pure” compared to the .mht version you rejected in step 1 in the
previous step list) — it’s still pretty hefty!

Examine the HTML that Word generated, as illustrated in Figure 3-4:

As you peruse the HTML code, you may notice comments (which Microsoft
uses to force the browser to ignore proprietary stuff, even some script code in
some cases). You also see lots of references to mso, which stands for Microsoft
Office, and many items in XML format defining properties of the document and
other data. Ignore all this. Or if you wish, peruseit for a while, but don’t get
hypnotized because what we’re looking for is further down the page.

Figure 3-3:
This is the
same text as
displayed in
Figure 3-2,
but now
rendered by
Internet
Explorer.

56 Part I: The ABCs of CSS

Free download pdf