Exploring an Individual Web Page

In the previous section, you opened a site and examined it on a folder level. In this exercise, you will open a page within this site, examine it at a page level, and use Expression Web’s tools for editing files.

Note

USE the CH1 sample site. This site is located in the DocumentsMicrosoft PressExpression Web SBSSample Sites folder.

OPEN the CH1 sample site.

  1. In the Folder List, double-click default.htm.

    The home page of the sample site opens in the Expression Web workspace.

    Exploring an Individual Web Page
  2. Point to the page header and page footer.

    The pointer changes from an insertion point to a no-insertion-point icon, because the page is attached to a Dynamic Web Template.

    Note

    Dynamic Web Templates (DWT) are Expression Web’s preferred method of keeping static pages within pages unified under a common look. In fact, every single site template that comes with Expression Web uses DWT to control the content pages. DWT works when you save files on your local computer, so there are no specific server requirements.

  3. There are two editable regions that you can work within on this page. Change the text in each of them, and then click the Save button.

    Note

    Save

    At the bottom of the design surface, you will see three view buttons: Design, Split, and Code.

    Note
  4. Click Split.

    Split view shows both Code and Design views simultaneously.

  5. Adjust the size of each view by dragging the separator between them up or down.

  6. Select some text in the Design pane at the bottom of your workspace.

    Notice how the Design view selection is also selected in the Code view pane.

    Note
  7. In the Folder List, double-click the master.dwt file to open it. Change one of the phone numbers in the header.

    Along the top of your Code pane, you’ll see the quick tag selector bar. Notice the arrow on the tag when you pause the mouse pointer over it.

  8. Click the arrow to see some options you can use.

    Note
  9. Save the page.

    You will be asked whether you want the pages that are attached to the DWT to be updated.

    Note
  10. Click Yes, and then click Close on the confirmation box.

  11. Set the mouse pointer in the navigation bar in the Design surface by clicking the link for Home.

    If you look at the quick tag selector bar from right to left, you will see that the Home link is inside of an <a> tag that’s inside an <li> and <ul> tag, which is inside a series of nested <div> tags.

    Tip

    The quick tag selector bar, Split view, and the CSS Properties task pane are indispensable tools for deeply exploring a complex document. With these tools, you can accurately and quickly find an exact place in a document’s code structure, which is useful for designing, repairing, or modifying pages.

    Tip
  12. Point to each of the tags on the quick tag selector bar slowly from left to right.

    Notice that when you point to a tag, a blue border appears around the corresponding element in the Design pane.

  13. In the quick tag selector bar, click div#navigation to select that page element.

    Notice that the containing element is a <div> tag.

    Tip

    All of Expression Web’s supplied templates use completely table-free cascading style sheet layouts in addition to being based on a DWT template. Expression Web provides a number of tools to work with the cascading style sheets that control the layout and presentation of the page.

  14. Click the Home link in the page’s navigation bar.

  15. On the Task Panes menu, click CSS Properties. On the CSS Properties task pane, make sure the Show set properties on top button is selected in order to show all of the CSS elements pertaining to that link stacked at the top of the CSS Properties task pane.

    Tip

    Show set properties on top

    Tip
  16. Expand the margin item in the CSS Properties task pane by clicking the plus sign (+) beside the item.

    Tip

    From here you can quickly change the whole cascading style sheet presentation of an element. All elements that are styled are highlighted in the CSS Properties task pane.

    Note

    CLOSE the CH1 sample site and exit Expression Web.

You’ve now seen how Expression Web works with pages on an individual level, from both a code and design standpoint, and you’ve had a chance to work with Expression Web’s tools. You’ve also seen how Expression Web’s site templates rely on Dynamic Web Templates and cascading style sheets for layout and style.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.108.236