Chapter 3. Working with Web Pages

Introduction

Once on the Web, you can open other Web pages in the Folder List or Folders views, or you can even open up another page using the Windows menu. Microsoft Expression Web provides several ways to navigate between pages. After you open a Web page, you can use the document tabs at the top of the editing window in Design view, choose the Web page’s name from the Window menu, or press Ctrl+Tab until the page you want appears in the window to navigate between pages.

One of the most user-friendly components of Expression Web is its capability to automatically convert text and images into HTML format. When you save a Web site or Web page, it is actually being saved in HTML format. After you create a Web site, you can use the Folder List view to quickly and easily manage individual Web pages.

When looking at a Web site, there are certain details that can make your Web pages a site that visitors will return to. Microsoft Expression Web helps you generate that type of site. Visitors might notice a washed out background picture called a watermark. Or maybe it’s a soothing color or light sound as you pass over certain feature of the page. Having a custom feel will express to your visitors that you’ve spent time and looked at every detail of your site.

You can preview your Web pages in a browser, or in Design view. Because each browser can display your site differently, you will want to examine your site using several of the most popular browser formats. You can also create your own template, instead of using one of the built-in page templates that comes with Expression Web.

Creating an HTML Page

An HTML page is a common Web page. HTML is a coding language that describes the elements on a Web page and instructs a Web browser how to display it. As you add elements to an HTML page in Design view, Expression Web creates the HTML code behind it. If you are familiar with the HTML language, you can use the Code view to make code changes. Split view allows you to display Design and Code view at the same time, which makes it a beneficial learning tool. When you add an element in Design view, you can view the related code in Code view. You can use the New submenu on the File menu or the New button on the Common toolbar to create a new HTML page. With the Page Editor Options dialog box, you can set the default type for new documents and the default file extension—either .html or .htm—for new HTML documents.

Create an HTML Page Quickly

  1. Create an HTML Page Quickly Click the Web Site tab for the site in which you want a new page.

  2. Create an HTML Page Quickly Use any of the following methods:

    1. Click the File menu, point to New, and then click HTML.

    2. Click the New button arrow on the Common toolbar, and then click HTML.

    3. Click the New button on the Common toolbar (applies when HTML is set as the default document type).

    Create an HTML Page Quickly

    Timesaver

    Press Ctrl+N to create a new HTML page.

    An untitled Web page appears without the use of New dialog box.

  3. Timesaver Click the Save button on the Common toolbar, type a name for the page, and then click Save.

Create an HTML Page

  1. Create an HTML Page Click the Web Site tab for the site in which you want a new page.

  2. Create an HTML Page Click the New button arrow on the Common toolbar, and then click Page.

  3. Create an HTML Page In the left pane, click General.

  4. Create an HTML Page Click HTML.

  5. Create an HTML Page Click OK.

    Create an HTML Page

    An untitled Web page appears.

  6. Create an HTML Page Click the Save button on the Common toolbar, type a name for the page, and then click Save.

Set the Default Document Type

  1. Set the Default Document Type Click the Tools menu, and then click Page Editor Options.

  2. Set the Default Document Type Click the Authoring tab.

  3. Set the Default Document Type Click the Default Document list arrow, and then select the document type you want.

  4. Set the Default Document Type Click the .html or .htm option for the default HTML file extension.

  5. Set the Default Document Type To add a byte order mark (BOM) to a new UTF-8 document, select the check boxes next to the extensions you want, or deselect the ones you don’t want.

  6. Set the Default Document Type Click OK.

    Set the Default Document Type

Opening Web Pages from Within a Web

Expression Web allows you to multi-task, which means you can have more than one Web page open at the same time. After you open a Web site, you can quickly open Web pages in Folders view, or from the Folder List instead of using the Open button on the Common toolbar or the Open command on the File menu. If you want to view open Web pages in a separate Expression Web window, you can display the page, and then choose Open in New Window from the Window menu. You can press Alt+Tab to switch between the separate windows. Instead of starting from scratch to create a new page, you can open a copy of an existing page with the default new Web page title of Untitled_1.htm.

Open a Web Page in Folders View

  1. Open a Web Page in Folders View Open the Web site with the Web page you want to open.

  2. Open a Web Page in Folders View Click the Web Site tab.

  3. Open a Web Page in Folders View Click the Folders button.

  4. Open a Web Page in Folders View Double-click the icon or file name representing the page you want to access.

    Open a Web Page in Folders View

Did You Know?

You can open a linked page from Design view. Press and hold Ctrl and click a hyperlink in the page, or right-click a hyperlink in a page that’s already open, and then click Follow Hyperlink.

See Also

See “Opening an Existing Web Page” on page 13 for information on opening an external Web page.

Open a Web Page Using the Folder List

  1. Open a Web Page Using the Folder List Open the Web site with the Web page you want to open.

  2. Open a Web Page Using the Folder List If necessary, click the Panels menu, and then click Folder List to display the Folder List.

  3. Open a Web Page Using the Folder List Double-click the page you want to open.

    Open a Web Page Using the Folder List

Open a Copy of a Web Page Using the Folder List

  1. Open a Copy of a Web Page Using the Folder List Open the Web site with the Web page you want to open.

  2. Open a Copy of a Web Page Using the Folder List If necessary, click the Panels menu, and then click Folder List to display the Folder List.

  3. Open a Copy of a Web Page Using the Folder List Right-click the page you want to copy, and then click New From Existing Page.

    A new untitled page appears in the Editing window with content and formats from the original template Web page.

  4. Open a Copy of a Web Page Using the Folder List Click the Save button on the Common toolbar.

    Open a Copy of a Web Page Using the Folder List
  5. Open a Copy of a Web Page Using the Folder List Navigate to the Web site folder location where you want to add pages.

  6. Open a Copy of a Web Page Using the Folder List Type a name for the page, or use the suggested name, and then click Save.

Navigating Web Pages

Expression Web provides several ways to navigate between pages. After you open a Web page, you can use the document tabs at the top of the Editing window, choose the Web page’s name from the Window menu, or press Ctrl+Tab until the page you want appears in the window to navigate between pages.

Navigate Web Pages Using Document Tabs

  1. Navigate Web Pages Using Document Tabs Open the Web site with the Web page you want to display, and then open the Web page.

  2. Navigate Web Pages Using Document Tabs Click the document tab with the page you want to display.

    Navigate Web Pages Using Document Tabs

Navigate Web Pages Using the Windows Menu

  1. Navigate Web Pages Using the Windows Menu Open the Web site with the Web page you want to display, and then open the Web page.

  2. Navigate Web Pages Using the Windows Menu Click the Window menu.

    This displays a list of up to nine open Web pages.

  3. Navigate Web Pages Using the Windows Menu Click the page you want to open. The Web page opens in Page view.

    Navigate Web Pages Using the Windows Menu

Displaying Web Pages in the HTML Format

One of the most user-friendly components of Expression Web is its capability to automatically convert text and images into HTML format. If you’re familiar with HTML, you might be comfortable enough to work in this mode. HTML adds a series of format instructions to your content using tags, such as <i>, that indicate how to format the text for display on the Web. Use the Quick Tag Selector to select any tag in your Web page. Use the Quick Tag Editor to insert, wrap, and edit HTML tags. Expression Web uses colored text to distinguish between elements when working in HTML format.

Display a Web Page in HTML

  1. Display a Web Page in HTML Open the Web page you want to display in the HTML format.

  2. Display a Web Page in HTML Click the Split or Code button at the bottom of the window.

    Display a Web Page in HTML

    The Web page appears in HTML coded form.

Display HTML Tags in Design View

  1. Display HTML Tags in Design View Open the Web page you want to display HTML tags.

  2. Display HTML Tags in Design View Click the View menu, and then click Quick Tag Selector.

    Display HTML Tags in Design View

    HTML tags appear in capsule-size, six-sided frames within the text.

  3. Display HTML Tags in Design View To turn off HTML tags, click the View menu, and then click Quick Tag Selector again.

Managing Web Pages

After you create a Web site, you can use the Folder List to quickly and easily manage individual Web pages, files and folders. If a page name is not exactly what you want, you can quickly rename it. The page name is the file name in your folder list, such as default.htm. You can create and name a new folder and move pages to a different location. If you no longer need or want a Web page, you can remove it. You can determine whether you want the page deleted from your hard drive or just from the Web.

Rename a Web Page

  1. Rename a Web Page Open the Web site with the Web page you want to rename.

  2. Rename a Web Page If necessary, click the Panels menu, and then click Folder List to display the Folder List.

  3. Rename a Web Page In the Folder List, right-click the page you want to rename, and then click Rename.

    Rename a Web Page

    Timesaver

    Click the file name in the Folder List, click the file again to highlight it.

  4. Timesaver Select the name of the Web page file, except the extension, such as .htm.

  5. Timesaver Type a new name, and then press Enter.

    Timesaver

Did You Know?

You can delete a Web page. In the Folder List, right-click the Web page you want to delete, click Delete, and then click Yes.

Create a New Folder

  1. Create a New Folder Open the Web site with the Web page you want to rename.

  2. Create a New Folder If necessary, click the Panels menu, and then click Folder List to display the Folder List.

  3. Create a New Folder Select the folder where you want to create a new folder.

  4. Create a New Folder In the Folder List, right-click a blank area, point to New, and then click Folder.

    Timesaver

    Click the New Document button arrow on the Common toolbar, then click Folder.

  5. Timesaver Type a new name, and then press Enter.

    Timesaver

Move a Web Page

  1. Move a Web Page Open the Web site with the Web page you want to move.

  2. Move a Web Page If necessary, click the Panels menu, and then click Folder List to display the Folder List.

  3. Move a Web Page In the Folder List, display the page you want to use.

  4. Move a Web Page Drag the page icon to the position where you want it to occupy on your site.

    Move a Web Page

Did You Know?

You can delete a folder. In the Folder List, right-click the folder you want to delete, click Delete, and then click Yes.

Setting the Home Page

When you create a Web site using a template, Expression Web automatically creates a home page called default.htm or default.html, which is the first page visitors see when they visit your site. If you already have a home page or want to create a different one, you can quickly set the one you want as the new home page using the Folder List.

Set a Web Page as the Home Page

  1. Set a Web Page as the Home Page Open the Web site with the Web page you want to change.

  2. Set a Web Page as the Home Page If necessary, click the Panels menu, and then click Folder List to display the Folder List.

  3. Set a Web Page as the Home Page In the Folder List, right-click the page you want to set as the new home page, and then click Set as Home Page.

    Set a Web Page as the Home Page
  4. Set a Web Page as the Home Page Click Yes to confirm you want to rename the previous home page.

    Set a Web Page as the Home Page
  5. Set a Web Page as the Home Page If prompted, click Yes to update hyperlinks.

    Set a Web Page as the Home Page
  6. Set a Web Page as the Home Page If prompted, click Yes to confirm you want to rename the home page.

Changing the Web Page Title

A Web page title is the text that visitors see on the title bar of their Web browser when they display the Web page. Expression Web automatically sets the Web page title to the same text as the Web page file name. However, the two perform different tasks. The Web page title displays a message, while the Web pane name identifies a file. When you save a Web page, you can change the title. If you didn’t change the title during the save process or you want to change it, you can use the Properties dialog box.

Change the Web Page Title

  1. Change the Web Page Title Open the Web site with the Web page you want to change.

  2. Change the Web Page Title If necessary, click the Panels menu, and then click Folder List to display the Folder List.

  3. Change the Web Page Title In the Folder List, right-click the page you want to change, and then click Properties.

    Change the Web Page Title

    The Properties dialog box opens, displaying the General tab with the current title selected.

  4. Change the Web Page Title Type a new name for the title.

  5. Change the Web Page Title Click OK.

    Change the Web Page Title

Did You Know?

You can change a Web page title in the Title column. If the Title column in the Editing window is enabled, you can select the title text, and then type a new title.

Changing Web Page Properties

Expression Web allows you to change individual Web page properties using the Page Properties dialog box. You can change the Web page title, add a page description, and specify keywords for search engines (which aren’t used to much anymore; most search engines use other methods). You can also insert a background sound or image, make the background image a transparent watermark, or change the color. When you insert a background sound, it plays once when you open the Web page unless you select the Loop option. In addition, you can change the color of page text and hyperlinks. For advanced feature, you can set page margins, work with code snippets, or specify a language.

Change Web Page Properties

  1. Change Web Page Properties Open the Web site with the Web page you want to change, and then click the Web page tab.

  2. Change Web Page Properties Click the File menu, and then click Properties.

  3. Change Web Page Properties Click the tab you want to use, and then select the options you want:

    • General. Use this tab to change the Web page title, add a page description, specify keywords for search engines, and insert a background sound. You can also specify a base location, which changes the root location (where your home page is typically located).

      General.
    • Formatting. Use this tab to insert a background image, and make it a watermark (transparent). To delete a background, select the image path and delete it. You can also use this tab to change the background, text, or link colors on the current page. If you insert a background sound, you can also select the look option.

      Formatting.
    • Advanced. Use this tab to set margins for the current page. However, it’s more efficient to make margin changes using CSS.

      Advanced.
    • Custom. Use this tab to add, modify, or remove custom code snippets based on system and user variables. A code snippet is a reusable segment of code.

    • Language. Use this tab to specify the page language and HTML encoding you want to use. These options make sure your Web browser and Expression Web uses the right characters set for the selected language. The default for HTML encoding is Unicode (UTF-8). You can also include a byte order mark (BOM).

      Language.
  4. Language. Click OK.

Did You Know?

What is a Unicode? A character coding standard that defines a set of letters, numbers, and symbols that represent almost all of the written languages in the world.

See Also

See “Setting Byte Order Marks” on page 382 for information on byte order marks (BOM).

Inserting Background Pictures and Watermarks

You can use a picture as the background for a page. Pictures can be taken from elsewhere on your site, a file, clip art, or the Web. You can also use a background picture in watermark form. A watermark is a background effect that displays a graphic in a light shade behind your text on your page. You can use a washed out version of your company logo, or you can add graphical text such as Under Construction. Pictures and watermarks display in the background titled across the page. Be aware that not all Web browsers support watermarks.

Insert a Background Picture

  1. Insert a Background Picture Open and display the Web page you want to use.

  2. Insert a Background Picture Right-click anywhere on the page to which you want to insert a background picture, and then click Page Properties.

  3. Insert a Background Picture Click the Formatting tab.

  4. Insert a Background Picture Select the Background Picture check box.

    Trouble?

    If the option is grayed out, you need to open the master page.

  5. Trouble? Click Browse.

  6. Trouble? Locate and select the picture you want to insert, and then click Open.

    The picture you selected now opens as a background image.

  7. Trouble? Click OK.

    Trouble?

Did You Know?

You can avoid picture background tiling. Make your picture wider than any typical computer screen. You can use a solid background color or make it transparent to achieve the look you want.

Insert a Background Picture Watermark

  1. Insert a Background Picture Watermark Open and display the Web page you want to use.

  2. Insert a Background Picture Watermark Right-click anywhere on the page to which you want to insert a background picture, and then click Page Properties.

  3. Insert a Background Picture Watermark Click the Formatting tab.

  4. Insert a Background Picture Watermark Select the Background Picture check box.

  5. Insert a Background Picture Watermark Select the Make it a watermark check box.

  6. Insert a Background Picture Watermark Click Browse.

  7. Insert a Background Picture Watermark Locate and select the picture you want to insert, and then click Open.

    The picture you selected now opens as a background image.

  8. Insert a Background Picture Watermark Click OK.

    Insert a Background Picture Watermark

Changing Background Colors

If you’d like to add some interest to your pages, you can add background colors. When selecting background colors, some creative judgment is required. For example, if you choose a dark color for your background, make sure you use a light color for your text (the most commonly used is white) to generate the appropriate contrast required for easy reading.

Change the Background Color of a Web Page

  1. Change the Background Color of a Web Page Open and display the Web page you want to use.

  2. Change the Background Color of a Web Page Right-click the page to which you want to change a background color, and then click Page Properties.

  3. Change the Background Color of a Web Page Click the Formatting tab.

  4. Change the Background Color of a Web Page Click the Background list arrow.

  5. Change the Background Color of a Web Page Click the color you want on the color palette.

  6. Change the Background Color of a Web Page Click OK.

    Change the Background Color of a Web Page

Adding Background Sound

You can introduce background sounds to accompany and enhance your Web page. There’s nothing like hearing a favorite tune when you enter a site or visit a particular page. The sound can be played continuously in a loop, or you can set it for a desired number of plays. Be aware that not all browsers support background sound.

Add a Background Sound to a Web Page

  1. Add a Background Sound to a Web Page Open and display the Web page you want to use.

  2. Add a Background Sound to a Web Page Right-click the page to which you want to add a background sound, and then click Page Properties.

  3. Add a Background Sound to a Web Page If necessary, click the General tab.

  4. Add a Background Sound to a Web Page Type the sound file name or click Browse, locate and select the sound file you want to use, and then click Open.

  5. Add a Background Sound to a Web Page To set the sound to repeat continuously, clear the Forever check box, and then click the number arrows in the Loop box to set the number of times you want the sound to play.

  6. Add a Background Sound to a Web Page Click OK.

    Add a Background Sound to a Web Page

    Whenever a visitor opens the page, they will hear the sound effect you chose.

Setting Page Size

Since visitors to your Web site can use different screen resolutions or window sizes, you need to develop Web pages so a variety of users can view it without having to zoom in or scroll to much. You can use the Page Size command to simulate different page size to see how your pages look. The page sizes available using the Page Size command correspond to standard screen resolutions, which include 640 × 480, 800 × 600 and 1024 × 768 (all maximized).

Change the Page Size View

  1. Change the Page Size View Click the View menu, and then point to Page Size.

  2. Change the Page Size View Click the page size you want.

    Change the Page Size View

Timesaver

Click the current page size on the status bar, and then click a new size.

Change the Page Size

  1. Change the Page Size Click the View menu, point to Page Size, and then click Modify Page Sizes.

  2. Change the Page Size Perform the commands you want:

    • Add. Click Add, enter width, height and a description, and then click OK.

    • Modify. Select a page size, click Modify, make changes, and then click OK.

    • Remove. Select a page size, and then click Remove.

    • Reset. Click Reset to return to default page sizes.

  3. Reset. Click OK.

    Reset.

Previewing Web Pages in Snapshot

With the Snapshot panel (New!), you can preview Web pages for the different browsers installed on your computer right in Expression Web. The Snapshot panel provides a quick and easy way to preview Web pages. The other preview options—Preview in Browser and SuperPreview—in Expression Web, open another program, so they take more time to use. However, you get a more accurate preview. You can use Snapshot panel to display any HTML, PHP, ASP, or ASPX page that you have opened and selected in Expression Web. In the Snapshot panel, you can select a browser, the browser window size, and refresh the screen. The Snapshot panel works like any other panel in Expression Web. You can move and dock it where ever you want.

Preview a Web Page Using the Snapshot Panel

  1. Preview a Web Page Using the Snapshot Panel Open the Web page you want to preview.

  2. Preview a Web Page Using the Snapshot Panel Click the Panels menu, and then click Snapshot.

    Preview a Web Page Using the Snapshot Panel

    A timer progress meter appears as Expression Web generates the preview snapshot.

  3. Preview a Web Page Using the Snapshot Panel To change the browser preview, click the Browser button in the Snapshot panel, and then select the browser you want.

  4. Preview a Web Page Using the Snapshot Panel To change browser display size, click the Browser window size button in the Snapshot panel, and then select a window size or Custom Size.

  5. Preview a Web Page Using the Snapshot Panel To refresh the contents of the Snapshot panel, click the Always Preview Active Document button in the Snapshot panel.

  6. Preview a Web Page Using the Snapshot Panel When you’re done, click the Close button in the Snapshot panel.

    Preview a Web Page Using the Snapshot Panel

Previewing Web Pages in a Browser

Because each browser can display your site differently, you will want to examine your site using several of the most popular browser formats and different sizes. When you are ready to see how your page will look to visitors, click the Preview in Browser button arrow on the Common toolbar and then select a browser and a window size. When you select a browser, the program starts and displays your Web page as you would see it on the Web. If you want to add additional browsers to the list, you can select them using the Edit Browser List dialog box. You can also simulate the page size of a browser as you work in Design view by selecting different page sizes on the Page Sizes submenu on the View menu.

Add Browsers to the Preview

  1. Add Browsers to the Preview Click the File menu, point to Preview in Browser, and then click Edit Browser List.

  2. Add Browsers to the Preview Click Add.

  3. Add Browsers to the Preview Type the browser’s name.

  4. Add Browsers to the Preview Click Browse.

  5. Add Browsers to the Preview Navigate to the location where the browser program is stored, select it, and then click Open.

  6. Add Browsers to the Preview Click OK.

    Add Browsers to the Preview
  7. Add Browsers to the Preview To automatically save a Web page before previewing, select the Automatically save page before previewing check box.

  8. Add Browsers to the Preview To specify the window sizes you want, select the 640 × 480, 800 × 600, or 1024 × 768 check boxes.

  9. Add Browsers to the Preview Click OK.

    Add Browsers to the Preview

Did You Know?

You can preview ASP.NET or PHP Web pages by using Microsoft Expression Development Server. Click the Site menu, click the Preview tab, click Site Settings, select the Use Microsoft Expression Development Server check box, and then click OK.

Preview a Web Page Using a Browser

  1. Preview a Web Page Using a Browser Open the Web page you want to preview.

  2. Preview a Web Page Using a Browser Click the Preview in Browser button arrow on the Common toolbar.

  3. Preview a Web Page Using a Browser Click the browser with the specific size you want to use to preview your site or page, or click More Browsers to select other available browsers from a list.

    Preview a Web Page Using a Browser

Timesaver

Press F12 to preview the Web page in the most recently used browser and size.

Did You Know?

You need to install other browsers before you can preview your pages. You must have previously installed the full version of other browsers like Netscape Navigator or Firefox if you want to preview how your pages will appear to users of those browsers.

You need to save your pages before you can preview them. To be sure that you have saved the page you want to preview, click the Automatically save page before previewing check box to select it in the Edit Browser List dialog box. Click the File menu, point to Preview in Browser, and then click Edit Browser List.

You can change the Web page size in Design view. Click the View menu, point to Page Size, and then select the size you want. If the Design view window is wider than the width you specify, gray areas appear on either side. If Design view is narrower than the width you specify, you’ll need to scroll the Design view window right or left. A dotted line across the page indicates the bottom of the browser window.

You can change the Web page size in Design view.

Displaying Web Pages in SuperPreview

SuperPreview (New!) makes it easy to view and compare a Web page or sections of a Web page in multiple browsers at the same time. SuperPreview gives you an array of tools—such as Selection and Panning Mode pointers, Layout modes (Side-by-side, Stacked, and Overlay), and Zoom, and Positioning Guides—to test and debug Web page issues across different browsers. After you compare a page or sections of a page in specified browsers, you can make adjustments in Expression Web back in Design view.

Preview Pages in SuperPreview

  1. Preview Pages in SuperPreview Open and display the Web page you want to preview.

  2. Preview Pages in SuperPreview Click the File menu, and then click Display in SuperPreview.

    Timesaver

    Click the Display in SuperPreview button on the Common toolbar or press Shift+F12.

    The SuperPreview window opens.

  3. Timesaver Click a browser icon to select a browser preview in the Baseline pane (left side) and Comparison pane (right side).

    Timesaver
  4. Timesaver Click an element to display the size and position of the element.

  5. Timesaver To switch panes, click the Switch baseline browser location button.

  6. Timesaver To add another comparison browser, click the Add button, and then click a browser icon.

  7. Timesaver To switch between comparison browsers, click a browser icon in the Comparison browser selector.

  8. Timesaver To view an element in the Document Object Model (DOM), click the DOM tab.

  9. Timesaver To remove a browser, click the Close button in the browser selector.

  10. Timesaver When you’re done, click the Close button on the program window.

    Timesaver

Work with Web Pages in SuperPreview

  1. Work with Web Pages in SuperPreview Open and display the Web page you want to preview.

  2. Work with Web Pages in SuperPreview Click the File menu, and then click Display in SuperPreview.

    The SuperPreview window opens.

  3. Work with Web Pages in SuperPreview Click a pointer mode button.

    • Selection Mode. Use to select individual page sections for comparison.

    • Panning Mode. Use to drag a page inside the browser view.

  4. Panning Mode. In Selection Mode, click a highlighting mode button.

    • Box Highlighting Mode. Highlights the selected element in blue in the baseline view and green in the comparison view.

    • Lights-Out Highlighting Mode. Displays the selected element normally, while dimming out everything else.

  5. Lights-Out Highlighting Mode. To show/hide the ruler, click the Toggle Ruler Visibility button.

  6. Lights-Out Highlighting Mode. To show/hide guides, click the Toggle Guide Visibility button. Drag the horizontal or vertical ruler onto the page to create a horizontal or vertical guide.

  7. Lights-Out Highlighting Mode. To show/hide the thumbnail display, click the Toggle Thumbnail Visibility button. Drag the shaded area in the thumbnail to display a region of the page.

    Lights-Out Highlighting Mode.
  8. Lights-Out Highlighting Mode. To change the layout, click the Vertical Split Layout, Horizontal Split Layout, Overlay Layout, or Single Layout button.

  9. Lights-Out Highlighting Mode. When you’re done, click the Close button on the program window.

    Lights-Out Highlighting Mode.

Printing Web Pages

Printed pages are helpful when you are working in Preview view. Rather than toggling between a page in progress and a Browser Preview of that page, for example, you can print the Preview so that you have it in hard copy format. Printouts are also helpful when editing your pages. Before printing, you can preview the page to determine that there are no obvious errors.

Print Preview Web Pages

  1. Print Preview Web Pages Open and display the Web page you want to preview.

  2. Print Preview Web Pages Click the File menu, point to Print, and then click Print Preview. This opens a scaled-down image of the page you want to print and a series of buttons. The button choices are:

    • Print button. Engages the printing process. The preview closes and the Print dialog box opens.

    • Next Page button. Displays the next page in the sequence for multiple-page printing.

    • Previous Page button. Takes you to the previous page in a sequence.

    • Two Page button. Toggles between a single-page and a two-page spread in Preview mode.

    • Zoom In button. Magnifies the preview image.

    • Zoom Out button. Reduces the size of the characters to show more of the page preview.

    • Close button. Closes the Preview mode.

  3. Close button. When you’re done, click the Close button.

    Close button.

Print Web Pages

  1. Print Web Pages Open and display the Web page you want to print.

  2. Print Web Pages Click the File menu, point to Print, and then click Print.

  3. Print Web Pages Select the print options you want.

  4. Print Web Pages Click OK.???

    Print Web Pages

Creating a Page Template

Instead of using one of the built-in page templates that comes with Expression Web, you can create your own. There are two kinds of page templates: static and dynamic. A static template is a Web page you create and design, which is completely editable. After you save a static page template, you can access it in the My Templates tab of the Page Templates dialog box. A dynamic template is a Web page with editable areas like a static template, yet also contains non-editable areas with content that changes based on circumstances, such as actions taken by a user or the date.

Create a Static Template

  1. Create a Static Template Design and display the Web page you want to create into a static template.

  2. Create a Static Template Click the File menu, and then click Save As.

  3. Create a Static Template Type a name for the template.

  4. Create a Static Template Click the Save as type list arrow, and then click Page Template (*.tem).

    The folder location changes to the Pages folder, where Expression Web stores page templates.

  5. Create a Static Template Click Save.

    Create a Static Template
  6. Create a Static Template Type the title you want for the template.

  7. Create a Static Template Type a description for the template.

  8. Create a Static Template To save the template in the current Web site, select the Save Template in Current Web site check box.

  9. Create a Static Template Click OK.

    Create a Static Template
  10. Create a Static Template If prompted, click OK to save embed files.

Create a Dynamic Template

  1. Create a Dynamic Template Design and display the Web page you want to create into a dynamic template. Be sure to leave areas open to create editable regions.

  2. Create a Dynamic Template Click the File menu, and then click Save As.

  3. Create a Dynamic Template Type a name for the template.

  4. Create a Dynamic Template Click the Save as type list arrow, and then click Dynamic Web Template (*.dwt).

    The folder location changes to the Pages folder, where Expression Web stores page templates.

  5. Create a Dynamic Template Click Save.

    Create a Dynamic Template
  6. Create a Dynamic Template If prompted, click OK to save embed files.

Create and Work with Editable Regions for a Dynamic Template

  1. Create and Work with Editable Regions for a Dynamic Template Display the Dynamic Web Template you want to change.

  2. Create and Work with Editable Regions for a Dynamic Template Select the page area you want to vary from page to page.

  3. Create and Work with Editable Regions for a Dynamic Template Click the Format menu, point to Dynamic Web Template, and then click Manage Editable Regions.

  4. Create and Work with Editable Regions for a Dynamic Template Type a name for the area you selected.

  5. Create and Work with Editable Regions for a Dynamic Template Click Add.

  6. Create and Work with Editable Regions for a Dynamic Template To rename an editable region. Select the region name, type a new name, and then click Rename.

  7. Create and Work with Editable Regions for a Dynamic Template To remove an editable region. Select the region name, and then click Remove.

  8. Create and Work with Editable Regions for a Dynamic Template Click Close.

    Create and Work with Editable Regions for a Dynamic Template

Using a Dynamic Page Template

After you create a dynamic Web template, you can apply, or attach, the template to an open Web page. When you attach a dynamic Web template to a Web page, Expression Web tries to map regions on the ordinary Web page to editable regions in the template. If you don’t like the initial mapping, you can modify or skip it. After you attach a dynamic Web template to an ordinary Web page, you can modify non-editable regions in Code view, or any editor other than Design view to create updatable content.

Attach a Dynamic Web Template

  1. Attach a Dynamic Web Template Display the Web page in which you want to apply a dynamic page template.

  2. Attach a Dynamic Web Template Click the Format menu, point to Dynamic Web Template, and then click Attach Dynamic Web Template.

  3. Attach a Dynamic Web Template Locate and select the dynamic Web template you want to apply.

  4. Attach a Dynamic Web Template Click Open.

    Attach a Dynamic Web Template
  5. Attach a Dynamic Web Template Select which regions in the new page will receive content/regions from the old page.

  6. Attach a Dynamic Web Template Click Modify, select a new mapping, and then click OK.

  7. Attach a Dynamic Web Template Click OK to attach the template.

  8. Attach a Dynamic Web Template Click Close.

    Attach a Dynamic Web Template

Did You Know?

You can manage editable regions. Click the Format menu, point to Dynamic Web Template, and then click Manage Editable Regions.

Update a Dynamic Web Template

  1. Update a Dynamic Web Template Open the dynamic Web page template, and then make the changes you want to update on other pages.

  2. Update a Dynamic Web Template Click the Format menu, and then point to Dynamic Web Template.

  3. Update a Dynamic Web Template Click the update command you want.

    • Update Selected Page

    • Update All Pages

    • Update Attached Pages

    Update a Dynamic Web Template

Did You Know?

You can detach a Dynamic Web Template from a Web page. Open and display the Web page with the Dynamic Web Template attached, click the Format menu, point to Dynamic Web Template, and then click Detach from Dynamic Web Template. If you want to open an attached Dynamic Web Template page, click Open Attached Dynamic Web Template on the submenu.

Creating a Master and Content Page

A Master page is a special type of ASP.NET page that allows you to share contents, such as graphics, HTML code, and ASP.NET controls, between pages. Master pages are similar to Dynamic Web Templates because they share elements between pages. However, Master pages add the ability to share code. If you have ASP.NET 2.0 available on your Web server, you can take advantage of Master pages. A Master page uses content controls instead of editable regions in a Dynamic Web Template. The content control on the Master page (ContentPlace Holder) maps to the content control on the Content page (Content). After you create a Master page using a template in the New dialog box, you need to save it with the .master file extension. Now, you can create a Content page and link it to a Master page.

Create a Master Web Page

  1. Create a Master Web Page Click the File menu, point to New, and then click Page.

  2. Create a Master Web Page In the left pane, click General or ASP.NET.

  3. Create a Master Web Page Click Master Page.

  4. Create a Master Web Page Click OK.

    Create a Master Web Page

    An Untitled_1.master page appears in the Editing window.

  5. Create a Master Web Page Click the File menu, and then click Save As.

  6. Create a Master Web Page Type a name for the master page.

  7. Create a Master Web Page Click the Save as type list arrow, and then click Master Page (*.master).

  8. Create a Master Web Page Click Save.

    Create a Master Web Page

Did You Know?

You can manage content regions. Click the Format menu, point to Master Pages, and then click Manage Content Regions.

Create a Content Web Page

  1. Create a Content Web Page Click the File menu, point to New, and then click Page.

  2. Create a Content Web Page In the left pane, click General or ASP.NET.

  3. Create a Content Web Page Click Create from Master Page.

  4. Create a Content Web Page Click OK.

    Create a Content Web Page
  5. Create a Content Web Page Click the Specific Master Page option.

  6. Create a Content Web Page Click Browse, locate and select the master page, and then click Open.

  7. Create a Content Web Page Click OK.

    Create a Content Web Page

    An Untitled_1.aspx content page appears in the Editing window.

    The Content page pulls in the content from the Master page in the ControlPlaceHolder control.

  8. Create a Content Web Page Click the File menu, and then click Save As.

  9. Create a Content Web Page Type a name for the content page.

  10. Create a Content Web Page Click the Save as type list arrow, and then click Web Pages.

    In this case, the content page is saved with the .aspx extension.

  11. Create a Content Web Page Click Save.

    Create a Content Web Page

Did You Know?

You can detach a Master page. Open and display the Content page, click the Format menu, point to Master Pages, and then click Detach from Master Page. If you want to open an attached Master page, click Open Attached Master Page on the submenu.

Saving a Web Page with Different Formats

A file type specifies the file format (for example, a template) as well as the program and version in which the file was created (for example, Expression Web). You might want to change the type if you’re creating a custom template or sharing files with someone who needs them for use in another program. You use the Save As dialog box to change the file type for a page. The Save as type list arrow displays a list of the available formats for the program or current selection.

Save a Web Page as a Different Type

  1. Save a Web Page as a Different Type Open and display the Web page you want to save in a different format.

  2. Save a Web Page as a Different Type Click the File menu, and then click Save As.

  3. Save a Web Page as a Different Type Navigate to the drive and folder location where you want to save the Web page.

  4. Save a Web Page as a Different Type Type a name for the page, or use the suggested name.

  5. Save a Web Page as a Different Type Click the Save as type list arrow, and then click the file type you want.

  6. Save a Web Page as a Different Type Click Save.

    Save a Web Page as a Different Type

See Also

See “Expression Web Formats” on page 75 for information on selecting the right file format.???

Expression Web Formats

Table . Expression Web Open and Save File Formats

Save As file type

Extension

Used to save

All Files

*.*

Complete Web site

Web Pages

 

Files in their native format; includes the formats in this list and the ones in the side bar on the previous page

HTML Files

.htm, .html

Web pages as a HTML file

Dynamic Web Template

.dwt

Web pages as a changeable Expression Web template

ASP and ASPX Files

.asp, .aspx

Web pages as a Microsoft Active Server Page

Master Page

.master

Web pages as Expression Web master page file; a special type of ASP.NET file

JScript Files

.js

Scripts as a Microsoft Scripting Language “JScript” file

VBScript Files

.vbs

Scripts as a Visual Basic for Applications file

PHP Files

.php, .php2, .php3, .php4, .php5, .php6

Web pages as a PHP file

CSS Files

.css

Web pages as a cascading style sheet

XML

.xaml, .xml, .xsd,.xsl, .xslt, .dtd

Web pages as an XML file

Text

.txt

Web pages as a text file

Page Template (Save only)

.tem

Web pages as a static Expression Web template

Table . Expression Web Import File Formats

Import file type

Extension

Used to save

All Files

*.*

Complete Web site

HTML Files

.htm, .html

Web pages as a HTML file

GIF and JPEG

.gif, .jpg

Web pages as a changeable Expression Web template

Microsoft Office Files

.doc, .xls, .ppt

Web pages as a cascading style sheet

Animating Page Transitions

You can use animation in your Web site to provide interest and call attention to important information. When you move from one Web page to another, you can display a transition effect between the two pages. You can select a transition effect, and then specify when the page transition occurs, and how long it lasts. The only disadvantage of page transitions is that the browser must wait for the entire Web page to load before it can apply the transition effect. Be aware that animated page transitions are not supported by all browsers.

Apply a Page Transition

  1. Apply a Page Transition Open and display the Web page you want to use.

  2. Apply a Page Transition Click the Format menu, and then click Page Transition.

  3. Apply a Page Transition Click the Event list arrow, and then click an event type: Page Enter, Page Exit, Site Enter, or Site Exit.

  4. Apply a Page Transition Click the transition effect you want.

  5. Apply a Page Transition Set the duration (in seconds) of the transition effect.

  6. Apply a Page Transition Click OK.

    Apply a Page Transition
..................Content has been hidden....................

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