Chapter 4. Working with Web Page Text

Introduction

As you build your Web pages, you’ll find that entering, selecting, correcting, moving, and copying will become commonplace. You can use all of the text functions as you do in any other Microsoft program. With Microsoft Expression Web, you can use all the common moving, deleting, and copying functions that you have already grown accustom to. You can also find and replace and format text just as you would in Word or Excel.

When entering text, you might find it necessary to add a bulleted or numbered list. You can also create sublists and collapsible lists to use on your pages. Choosing the alignment of your text, your line spacing, and paragraph indents all work the same way as other Microsoft programs.

A style is a collection of formatting settings saved with a Web site or template that you can apply to text, graphics, and tables at any time. Expression Web comes with a standard set of styles you can apply to text. If you modify a style, you make the change once, but all text tagged with that style changes to reflect the new format. In Chapter 12, you’ll learn how to create a Cascading Style Sheet (CSS), which is style information that can be referenced by individual or multiple Web pages.

Of course, while working with all of this text, using Expression Web’s spell checker is a must. You can spell check, add familiar or custom words to your dictionary, check for common grammatical errors, or use the Thesaurus to enhance your Web pages. International Microsoft Expression Web users can change the language that appears on their screens by changing the default language settings.

Entering Text in a Web Page

There are two methods of entering text on a Web page: as part of a template or from scratch. When starting out, we strongly recommend that you work from a template. If you are working with templates, you can begin by editing the boilerplate text that opens as part of the template.

Select the template text that you wish to replace and begin typing. The boilerplate text disappears and your text begins flowing into that section of the template. Be sure to constrain your text to the original area provided in the template and, if necessary, edit what you wish to say to make the copy fit within the allotted space.

The other way to enter text is on a blank page. Create a new Web page, and then start typing. When you enter text, Expression Web automatically places text inside a container as an HTML tag. An HTML tag is code inserted in a document that specifies how the document, or a portion of the document, should be formatted. HTML defines the structure and layout of a Web document by using a variety of tags and attributes. The opening tag (<p>) marks the start of the paragraph code and a closing tag (</p>) marks the end of the paragraph, denoted by the forward slash (/). When you select a container, the tag type appears as a tab identifying the container.???

Entering Text in a Web Page

Table . Common Tags

Symbol

Defines

<html>

Start of the HTML document

<head>

The document heading

<body>

The body of the document

<title>

The document title

<div>

A section in a document

<span>

A section in a document

<h1>

Text heading

<p>

A paragraph

<style>

Format of text

<img>

An image placeholder

<a>

A hyperlink

<iframe>

An inline frame

<!-- comment -->

A comment

Selecting Text in a Web Page

The first step in working with text is to highlight, or select, the text you want. Once you’ve selected it, you can format, replace, delete, copy, and move (cut) words, sentences, and paragraphs within one Web page or between Web pages. When you finish with or decide not to use a selection, you can click anywhere in the page to deselect the text.

Select Text

  1. Select Text Position the pointer in the word, paragraph, line, or part of the page you want to select.

  2. Select Text Choose the method that accomplishes the task you want to complete in the easiest way.

    Select Text

    Refer to the table for methods to select text.

See Also

See “Working with Template Content” on page 26 for information on working with content from a template.???

Table . Selecting Text

To Select

Do This

A single word

Double-click the word.

A single paragraph

Triple-click a word within the paragraph.

A single line

Click in the left margin next to the line.

Any part of a page

Click at the beginning of the text you want to highlight, and then drag to the end of the section you want to highlight.

A large selection

Click at the beginning of the text you want to highlight, and then press and hold Shift while you click at the end of the text that you want to highlight.

Editing Text

You can edit text in Expression Web several ways. First, you can select the text you want to edit, and then type text to replace it or press the Delete key to remove it. Another way to edit text is to place the insertion point in the text, and then type to insert text or press the Backspace or Delete keys to remove it. The Backspace key deletes text to the left, while the Delete key deletes text to the right.

Select and Edit Text

  1. Select and Edit Text Select the text you want to edit.

    Select and Edit Text
  2. Select and Edit Text Perform one of the following editing commands:

    • To replace text, type your text.

    • To delete text, press the Backspace key or the Delete key.

Insert and Edit Text

  • Insert and Edit Text Click in the page to place the insertion point where you want to make the change.

    • To insert text, type your text.

    • To delete text, press the Backspace key or the Delete key.

    Insert and Edit Text

    Timesaver

    Press Ctrl+ Backspace or Ctrl+Delete to delete one word at a time left or right.

Making Corrections

Everyone makes mistakes and changes their mind at some point, especially when creating or revising a document. With Expression Web, you can instantly correct typing errors by pressing a key. You can also reverse more complicated actions, such as typing an entire word, formatting a paragraph, or creating a chart. With the Undo button, if you change your mind, you can just as easily click the Redo button to restore the action you reversed.

Undo or Redo an Action

  • Click the Undo button on the Common toolbar to reverse your most recent action, such as typing a word, formatting a paragraph, or creating a chart.

    Timesaver

    Press Ctrl+Z to undo.

  • Click the Redo button on the Common toolbar to restore the last action you reversed.

    Timesaver

    Press Ctrl+Y to redo your undo.

  • Click the Undo button arrow, and then select the consecutive actions you want to reverse.

    Timesaver
  • Click the Redo button arrow, and then select the consecutive actions you want to restore.

    Timesaver

Inserting a Line or Paragraph Break

As you enter or modify text on a Web page, the text automatically wraps within a container to create a paragraph. If you want to create a paragraph, all you need to do is press Enter, which inserts a paragraph break. When you insert a paragraph break, Expression Web automatically creates a new paragraph container, which is denoted with a tab labeled with a p. If you want to insert a line, yet still remain in the same paragraph, you can insert a line break. Sometimes it’s hard to see the difference between a paragraph or line break, so Expression Web provides the option to show or hide formatting marks. In addition to showing or hiding line breaks and paragraph marks, you can also show or hide spaces, comments, script blocks, container position, aligned elements, and other code-related elements.

Show or Hide Line and Paragraph Marks

  • Show or Hide All Formatting Marks. Click the View menu, point to Formatting Marks, and then click Show.

    • You can also click the Show Formatting Marks button on the Standard toolbar.

    Timesaver

    Click Ctrl+Alt+/ to show or hide all formatting marks.

  • Show or Hide Line Breaks. Click the View menu, point to Formatting Marks, and then click Line Breaks.

    • You can also click the Show Formatting Marks button arrow on the Standard toolbar.

  • Show or Hide Paragraph Marks. Click the View menu, point to Formatting Marks, and then click Paragraph Marks.

    • You can also click the Show Formatting Marks button arrow on the Standard toolbar.

    Show or Hide Paragraph Marks.

Insert a Line Break

  • Click where you want the text to break, and then press Shift+Enter.

  • Click where you want the text to break, click the Insert menu, point to HTML, click Break, click the break option you want, and then click OK.

  • Click where you want the text to break, click the plus sign (+) next to Tags in the Toolbox panel, and then double-click the Break icon.

Insert a Line Break

Insert a Paragraph Break

  • Click where you want a new paragraph, and then press Enter.

  • Click where you want the text to break, click the Insert menu, point to HTML, and then click Paragraph.

  • Click where you want the text to break, click the plus sign (+) next to Tags in the Toolbox panel, and then double-click the Paragraph icon.

    Insert a Paragraph Break

Moving and Copying Text

Text can be moved and copied in Expression Web just like in other word processing software. You can move or copy text within a Web page, between Web pages, or to another program. When you cut (for a move) or copy text or graphics, Expression Web places it on the Clipboard. To complete the copy or move, you paste the data stored on the Clipboard in another location. You can use the commonly used Paste command or the Paste Text command, which provides options to control line breaks and white space. When you paste an item with the Paste command, the Paste Options button appears allowing you to keep or remove formatting or keep HTML or Text only. When you use the Paste Text command, the Paste Text dialog opens allowing you to select the option you want. To copy or move text or graphics without using the Clipboard, you can use a technique called drag-and-drop. Drag-and-drop makes it easy to copy or move text or graphics short distances on your Web page.

Move or Copy Text Using Drag-and-Drop

  1. Move or Copy Text Using Drag-and-Drop Select the text you want to move or copy.

  2. Move or Copy Text Using Drag-and-Drop To move the text from its current location, drag the selection to the new location, and then release the mouse button.

    Move or Copy Text Using Drag-and-Drop
  3. Move or Copy Text Using Drag-and-Drop To copy the text to a new location, hold down Ctrl and drag the selection to the new location, and then release the mouse button.

Did You Know?

You can copy and paste between documents to export Web content. You can cut or copy text between pages and even between Expression Web and other Microsoft programs. Switch between programs on the system taskbar at the bottom of the screen.

Move or Copy Text

  1. Move or Copy Text Select the text you want to move or copy.

  2. Move or Copy Text To move the text from its current location, click the Edit menu, and then click Cut. The text is removed from its current location and placed on the Clipboard.

  3. Move or Copy Text To copy the text to a new location, click the Edit menu, and then click Copy. A copy of the text is placed on the Clipboard.

  4. Move or Copy Text Click to position the insertion point where you want to place the cut or copied text.

    Timesaver

    The Copy, Cut, and Paste buttons are available on the Standard toolbar.

  5. Timesaver Click the Edit menu, and then click one of the following:

    • Paste. Pastes the text and retains the source formatting.

    • Paste Text. Select a paste option in the Paste Text dialog box, and then click OK.

    Paste Text.

    The text is copied from the Clipboard to the new location, but also remains on the Clipboard for future placements.

  6. Paste Text. If necessary, click the Paste Options button, and then click an option to adjust the pasted item.

    Paste Text.

Did You Know?

You can turn on or off paste options. Click the Tools menu, click Page Editor Options, click the General tab, select or clear the Show Paste Options buttons check box, and then click OK.???

Table . Paste Text Options

Select

To Do This

Plain text

Insert plain text with spaces replacing any line breaks in pasted text

One <pre> formatted paragraph

Use <pre> (preformatted) tag to maintain all line breaks of pasted text

Many <pre> formatted paragraph

Use <pre> tag to maintain all line and paragraph breaks of pasted text

Normal paragraphs with line breaks

Convert any lines breaks to <br> (line break) tag and any paragraph breaks to <p> tag

Normal paragraphs without line breaks

Pastes text without line breaks

Setting Text Indention and Spacing

Indenting paragraph text allows you to shift text to make it stand out. You can indent text to create an outline or indent the first line of a paragraph. You can use the Increase Indent Position and Decrease Indent Position buttons on the Formatting toolbar to quickly change text position or use the Paragraph dialog box to set more precise positioning. Line spacing is another way to vary the look of a Web page. The lines in a Web page are single-spaced by default, but you can easily change line spacing to double or 1.5 lines to allow extra space between every line. Sometimes, you’ll want to add space above and below certain paragraphs, such as for headlines or indented quotations to help set off the text.

Change Paragraph Indention

  1. Change Paragraph Indention Open and display the Web page you want to use.

  2. Change Paragraph Indention Select the paragraph you want to change.

  3. Change Paragraph Indention Click an indent button on the Formatting toolbar to apply the attribute that you want the selected text.

    • Increase Indent Position button. Increase the indent position to the right.

      Timesaver

      Press Tab to increase the indent position.

    • Decrease Indent Position button. Decrease the indent position to the left.

    Decrease Indent Position button.

Did You Know?

You can change character spacing. Select the text you want to change, click the Format menu, click Font, click the Character Spacing tab, click the Spacing list arrow, click Normal, Expanded, or Condensed, click the Position list arrow, click a vertical position option, and then click OK.

Change Paragraph Indents

  1. Change Paragraph Indents Open and display the Web page you want to use.

  2. Change Paragraph Indents Select the paragraph you want to change.

  3. Change Paragraph Indents Click the Format menu, and then click Paragraph.

  4. Change Paragraph Indents Type the space you want indented on the left side of the selected paragraph (in points).

  5. Change Paragraph Indents Type the space you want indented on the right side of the selected paragraph (in points).

  6. Change Paragraph Indents Type the space you want indented before the first line of the selected paragraph (in points).

  7. Change Paragraph Indents Click OK.

    Change Paragraph Indents

Change Line Spacing

  1. Change Line Spacing Open and display the Web page you want to use.

  2. Change Line Spacing Select the paragraph you want to change.

  3. Change Line Spacing Click the Format menu, and then click Paragraph.

  4. Change Line Spacing Click the Line Spacing list arrow, and then click the spacing you want.

  5. Change Line Spacing Type the space you want to add before (above) each selected paragraph (in points).

  6. Change Line Spacing Type the space you want to add after (below) each selected paragraph (in points).

  7. Change Line Spacing Click OK.

    Change Line Spacing

Setting Text Alignment

Text alignments vary the look of a Web page and help lead the user through the text. You can align text along the left or right margin, in the center, or equally across the page. Left-aligned text works well for body paragraphs in most cases, but other alignments vary the look of a page and help lead the reader through the text. Right-aligned text, which is even along the right margin and ragged at the left margin, is good for adding a date to a letter. Justified text spreads text evenly between the margins, creating a clean, professional look, often used in articles. Centered text is best for titles and headings. You can quickly change text alignment using alignment buttons on the Common or Formatting toolbar.

Change Text Alignment

  1. Change Text Alignment Open and display the Web page you want to use.

  2. Change Text Alignment Select the text you want to align.

  3. Change Text Alignment Click an alignment button on the Common or Formatting toolbar to apply the attribute that you want the selected text.

    • Align Left button. Aligns text along the left margin. The text is uneven along the right margin.

    • Center button. Aligns text in the middle of the page.

    • Align Right button. Aligns text along the right margin. The text is uneven along the left margin.

    • Justify button. Aligns text evenly between the two margins (only on Formatting toolbar).

    Justify button.

See Also

See “Setting Text Indention and Spacing” on page 86 for information on changing text indention and spacing.

Inserting Symbols

Expression Web comes with a host of symbols and special characters for every need. Insert just the right one to keep from compromising a Web page’s professional appearance with a hand-drawn arrow («) or missing mathematical symbol (å). Before you insert a symbol, be aware that not all browsers support all symbols. Be sure to test your pages on several browsers.

Insert Symbols and Special Characters

  1. Insert Symbols and Special Characters Open and display the Web page you want to use.

  2. Insert Symbols and Special Characters Click where you want to insert a symbol or character.

  3. Insert Symbols and Special Characters Click the Insert menu, and then click Symbol.

    Timesaver

    Recently used symbols appear at the bottom of the dialog box.

  4. Timesaver To see other symbols, click the Font list arrow, and then click a new font.

  5. Timesaver To select a subset, click the Subset list arrow, and then select the subset you want.

    • Some common subsets include Currency symbols, Arrows, and General Punctuation.

  6. Timesaver Click a symbol or character.

  7. Timesaver Click Insert.

    Timesaver

See Also

See Chapter 5, “Working with Web Page Graphics” on page 117 for information on inserting graphics.

Inserting Horizontal Lines

Horizontal lines have a variety of uses in the construction of a Web page. Whether they’re used to separate sections of a page or to underline an important piece of text, you have several decisions to make. Lines have a variety of properties that you can modify, including width, height, alignment, and color.

Insert a Horizontal Line

  1. Insert a Horizontal Line Open and display the Web page you want to use.

  2. Insert a Horizontal Line Click where you want to insert a horizontal line.

  3. Insert a Horizontal Line Click the Insert menu, point to HTML, and then click Horizontal Line.

    • You can also click the plus sign (+) next to Tags, and then double-click the Horizontal Line icon.

    Insert a Horizontal Line

Modify a Horizontal Line

  1. Modify a Horizontal Line Open and display the Web page with the horizontal line you want to change.

  2. Modify a Horizontal Line Double-click the horizontal line you want to modify.

    Modify a Horizontal Line
  3. Modify a Horizontal Line Select the formatting options you want.

    • Width. Width of the line. Specified in pixels or as a percentage of the window width.

    • Height. Height of the line in pixels.

    • Alignment. Alignment of the line on the page.

    • Color. Color of the line, unless you want it shaded. If you select a color, shading is no longer an option.

    • Solid Line. Select the check box to create a solid line. Clear it to create a shaded line.

  4. Solid Line. Click OK.

    Solid Line.

Creating Bulleted and Numbered Lists

The best way to draw attention to a list is to format the items with bullets or numbers. For different emphasis, you can change any bullet or number style to one of the predefined formats. You can also customize the list style or insert a picture as a bullet. If you move, insert, or delete items in a numbered list, Expression Web sequentially renumbers the list for you. Every time you press Enter, a new bullet will appear. To end a list, press Enter twice.

Create Bulleted and Numbered Lists from Scratch

  1. Create Bulleted and Numbered Lists from Scratch Open and display the Web page you want to use.

  2. Create Bulleted and Numbered Lists from Scratch Select the text you want to change into a bulleted or numbered list, or click where you want to start a list.

  3. Create Bulleted and Numbered Lists from Scratch Click the Bullets or Numbering button on the Common toolbar.

  4. Create Bulleted and Numbered Lists from Scratch If you’re starting a list, type the first entry, and then press Enter.

  5. Create Bulleted and Numbered Lists from Scratch Type the next entry, and then press Enter.

    Create Bulleted and Numbered Lists from Scratch
  6. Create Bulleted and Numbered Lists from Scratch To end the list, press Enter twice.

Did You Know?

You can remove bullets or numbering from a list. Select the list with the bullets or numbering, and then click the Bullets or Numbering button on the Common toolbar.

You can add more items to a list. Click at the end of the line above where you want to add an item to the list, and then press Enter. To create a sublist, press Tab.

Change the Format of a Bulleted or Numbered Lists

  1. Change the Format of a Bulleted or Numbered Lists Open and display the Web page you want to use.

  2. Change the Format of a Bulleted or Numbered Lists Select the list you want to format.

  3. Change the Format of a Bulleted or Numbered Lists Click the Format menu, and then click Bullets and Numbering.

    Change the Format of a Bulleted or Numbered Lists
  4. Change the Format of a Bulleted or Numbered Lists Click the tab (Picture Bullets, Plain Bullets, Numbers, or Other) for the type of change you want to make.

  5. Change the Format of a Bulleted or Numbered Lists Click the style change you want.

  6. Change the Format of a Bulleted or Numbered Lists Click OK.

    Change the Format of a Bulleted or Numbered Lists

Did You Know?

You can insert a custom bullet. Produce a custom bullet, and then save it, preferably in either GIF (.gif) or JPEG (.jpg) format. In Expression Web, place the insertion point at the place where you want to start the list. Click the Format menu, click Bullets and Numbering, click the Picture Bullets tab, click the Specify picture option button, click Browse to locate your creation, double-click a picture, and then click OK. You can proceed as you would with any other bullet style.

You can use the Style list arrow to format a bullets or numbered list. Click the Style list arrow on the Common toolbar, and then click Unordered List <ul> or Ordered List <ol>. An unordered list is a bulleted list, while an ordered list is a numbered list.

Creating Sublists

In addition to the standard bulleted and numbered lists, you can also create indented lists, or sublists. A sublist creates multilevels in a list. You can create a sublist with a bulleted or numbered list. You use the Increase Indent button on the Formatting toolbar to create the multilevels. If you want to insert a line to create a sublist, you can press Tab or use the Increase Indent button.

Create a Sublist List

  1. Create a Sublist List Open and display the Web page you want to use.

  2. Create a Sublist List Select the text you want to change into a sublist, or click where you want to start the sublist (press Enter to create a new line).

  3. Create a Sublist List Click the Increase Indent button on the Formatting toolbar.

    • If you create a new line, you can press Tab to create a sublist.

    Expression Web creates a sublist bullet.

  4. Create a Sublist List If you’re starting a sublist, type the first entry, and then press Enter.

    Create a Sublist List

Applying Styles

A style is a collection of formatting settings saved with a Web site or template that you can apply to text, graphics, and tables at any time. If you modify a style, you make the change once, but all text tagged with that style changes to reflect the new format. Expression Web provides you with Built-In Styles, or you can create your own User-Defined Styles. Both built-in and user-defined styles are available from the same style list while you edit a page. When you create a user-defined style, you can also create an embedded Cascading Style Sheet (CSS), which is style information that is applied to the open Web page.

Apply a Style to Text

  1. Apply a Style to Text Open and display the Web page you want to use.

  2. Apply a Style to Text Select the text you want to apply a style.

  3. Apply a Style to Text Click the Style list arrow on the Common toolbar.

  4. Apply a Style to Text Click a style from the drop-down list. The default styles include:

    • (None)

    • Paragraph <p>

    • Heading1 <h1> through Heading 6 <h6>

    • Unordered List <ul>

    • Ordered List <ol>

    • Defined Term <dt>

    • Definition <dd>

    • Address <address>

    • Preformatted <pre>

    • Block Quote <blockquote>

    Apply a Style to Text

Did You Know?

You can remove a style. Select the text, click the Style list arrow on the Common toolbar, and then click (None).

Creating Heading and Definitions

You can use the Styles list arrow on the Common toolbar to quickly format text as a heading or definition list. A heading provides structure for a Web page by providing visual indicator of what is important. The default styles include six different headings, labeled Heading1 <h1> through Heading6 <h6>. Heading1 is the largest size and Heading6 is the smallest size. If you have a list of definitions you want to include in a Web page, you can use the Define Term <dt> and Definition <dd> styles to format the information you want to provide.

Create a Heading

  1. Create a Heading Open and display the Web page you want to use.

  2. Create a Heading Select the text you want to change into a heading or subheading.

  3. Create a Heading Click the Style list arrow on the Common toolbar.

  4. Create a Heading Click a style (such as Heading 1, Heading 2, etc.) from the drop-down list.

    Create a Heading

    The text is defined with the heading tag associated with it (<h1> to <h6>).

Create a Definition List

  1. Create a Definition List Open and display the Web page you want to use.

  2. Create a Definition List Click to place the insertion point where you want to place a definition.

  3. Create a Definition List Click the Style list arrow on the Common toolbar, and then click Defined Term.

  4. Create a Definition List Type the term name, and then press Enter.

    The term is defined with the <dt> tag and the definition is indented.

  5. Create a Definition List Type the definition for the term name, and then press Enter.

    Create a Definition List

    The definition is defined with the <dd> tag.

  6. Create a Definition List Type the next term name, press Enter, type the definition, and then press Enter.

  7. Create a Definition List To end the definition list, press Enter twice.

Formatting Text

You’ll often want to format, or change the style of text to add emphasis to part of a Web page. Boldface, italics, underlines, and other text effects are toggle switches, which means you simply click to turn them on and off. For special emphasis, you can apply multiple formats, such as bold and italics. You can also change the font typeface and size. Using one font typeface for headings and another for main text adds a professional look to your Web page.

Format Text Quickly

  1. Format Text Quickly Open and display the Web page you want to use.

  2. Format Text Quickly Select the text you want to format.

  3. Format Text Quickly Click a formatting button on the Common toolbar to apply the attribute you want.

    • Bold button.

    • Italic button.

    • Underline button.

    • Font Color button arrow, and then select a color.

    • Highlight button arrow, and then select a color.

    Format Text Quickly

Change the Font Quickly

  1. Change the Font Quickly Open and display the Web page you want to use.

  2. Change the Font Quickly Select the text you want to format.

  3. Change the Font Quickly Click the Font list arrow, and then click a font typeface.

    Change the Font Quickly

See Also

See Chapter 12, “Creating Styles and Layouts with CSS” on page 287 for information on formatting text using cascading style sheets, which provides consistent formatting for Web pages.

Change the Font Size of Text Quickly

  1. Change the Font Size of Text Quickly Open and display the Web page you want to use.

  2. Change the Font Size of Text Quickly Select the text you want to format.

  3. Change the Font Size of Text Quickly Select the font sizing option you want.

    • Click the Font Size list arrow on the Common toolbar, and then click a font typeface.

    • Click the Increase Font Size or Decrease Font Size button on the Formatting toolbar.

    Change the Font Size of Text Quickly

Format Text Using the Font Dialog Box

  1. Format Text Using the Font Dialog Box Open and display the Web page you want to use.

  2. Format Text Using the Font Dialog Box Select the text you want to format.

  3. Format Text Using the Font Dialog Box Click the Format menu, and then click Font.

  4. Format Text Using the Font Dialog Box Select the formatting options you want.

    • Select a font.

    • Select a font style.

    • Select a font size.

    • Select a font color on the Color list.

    • Under Effects, select the effect of your choice, if any.

  5. Format Text Using the Font Dialog Box Click OK.

    Format Text Using the Font Dialog Box

Adding Text Effects

Expression Web comes with simple special effects you can quickly add to text on your Web pages. Some of the effects add style to your text, such as Blink or Overline, while others define the type of text, such as Definition or Citation, on your Web pages.

Add Font Effects to Text

  1. Add Font Effects to Text Open and display the Web page you want to use.

  2. Add Font Effects to Text Select the text you want to format.

    Add Font Effects to Text
  3. Add Font Effects to Text Click the Format menu, and then click Font.

  4. Add Font Effects to Text Select or clear the font special effects check boxes. The unique effects to Expression Web include:

    • Overline. Draws a line above the text.

    • Blink. Applies blinking animation to the text.

    • Capitalize. Capitalizes the first letter in each word.

    • Strong. Applies a stronger emphasis to the text.

    • Emphasis. Applies a subtle emphasis to the text.

    • Sample. Applies a fixed width font to the text.

    • Definition. Specifies the text as a definition.

    • Citation. Specifies the text as a reference to other sources.

    • Variable. Specifies the text as a variable or program argument.

    • Keyboard. Specifies the text that is entered by a user.

    • Code. Specifies the text as a programming code.

  5. Code. Click OK.

    Code.

Accessing More Colors

Expression Web comes with a standard set of 16 colors. In addition to the standard colors, Expression Web allows you to add more colors to the set for use on your Web pages. More Colors are additional colors that you can add to each color menus—the Font Color button menu, for example. More Colors are useful when you want an object or picture to always have the same color. They are also useful when you want to change the color of an object to a specific color, but the standard colors don’t not have that color. Colors that you add to a specific color menu appear in all color menus and remain in the menu even if the color scheme changes.

Add a Color to the Menus

  1. Add a Color to the Menus Open and display the Web page you want to use.

  2. Add a Color to the Menus Click any color list arrow (such as Font Color button arrow) to open a color palette.

    Add a Color to the Menus
  3. Add a Color to the Menus Do one of the following:

    • Click a color from the expanded palette. Every time you click a color, its corresponding hexadecimal value appears in the Value box.

    • Enter a hexadecimal value in the Value box. An example of such a value would be HEX={99,FF,CC}.

    • To select a color from anywhere on the screen, click Color eyedropper, and then click any color on the screen.

  4. Add a Color to the Menus Click Apply.

    Add a Color to the Menus

Finding and Replacing Text or Code

Suppose that you discover you have misspelled or want to change a word throughout an entire Web page. You do not need to read through the document to find every instance of the word and manually change it. The Find and Replace commands can do that for you. Expression Web can find every instance for you, and walk you through the Web site from page to page until all the corrections have been made. In addition to text, you can also find and replace code. You can search one or more Web page or an entire Web site. When you search multiple pages, the results appear in a Find panel.

Find and Replace Text or Code on a Web Page

  1. Find and Replace Text or Code on a Web Page In the Folder List, open or select the one or more pages you want to search.

    • To select multiple pages, use Ctrl+click.

  2. Find and Replace Text or Code on a Web Page Click the Edit menu, and then click Find.

  3. Find and Replace Text or Code on a Web Page Enter the text for which you are searching, or click the Regular expression list arrow, and then select a special character or option.

  4. Find and Replace Text or Code on a Web Page If you want to replace the text or code found, click the Replace tab, and then enter the replacement text.

  5. Find and Replace Text or Code on a Web Page Click the Current page option.

  6. Find and Replace Text or Code on a Web Page Select the search parameters you want (Match case, Find whole word only, etc.).

  7. Find and Replace Text or Code on a Web Page Select one of the following buttons:

    • Find All or Find Next button. Locates all instances or the next instance of the text.

    • Replace All or Replace button. Replaces all instances or the selected instance of the text.

  8. Find and Replace Text or Code on a Web Page When you’re done, click Close in the dialog box and panel.

    Find and Replace Text or Code on a Web Page
    Find and Replace Text or Code on a Web Page

Find and Replace Text or Code on a Web Site

  1. Find and Replace Text or Code on a Web Site In the Folder List, open or select the Web site you want to search.

  2. Find and Replace Text or Code on a Web Site Click the Edit menu, and then click Find.

  3. Find and Replace Text or Code on a Web Site Enter the text for which you are searching.

  4. Find and Replace Text or Code on a Web Site If you want to replace the text or code found, click the Replace tab, and then enter the replacement text.

  5. Find and Replace Text or Code on a Web Site Click the Selected Pages option or the All Pages option.

  6. Find and Replace Text or Code on a Web Site Click Find All or Replace All.

    Find and Replace Text or Code on a Web Site

    The list of pages containing the selected or replaced word(s) opens in the Find pane at the bottom of the Editing window.

  7. Find and Replace Text or Code on a Web Site When Expression Web lists the pages in which the text you’re seeking was found (step four), you can open any of these pages by double-clicking the page from the list. The first instance of the text you’re looking for is highlighted. This text can be replaced via the Replace command.

  8. Find and Replace Text or Code on a Web Site To continue searching the page, click the blue Next or Back arrows in the Find pane.

  9. Find and Replace Text or Code on a Web Site When you’re done, click Close in the dialog box and panel.

    Find and Replace Text or Code on a Web Site
    Find and Replace Text or Code on a Web Site

Did You Know?

You can perform a search on part of a Web page. Perform an initial find with the criteria you want. Click the Edit menu, click Incremental Search, and then click the text you want to search.

Finding and Replacing HTML Tags

In addition to finding and replacing text and code, you can also find and replace HTML tags. The Find and Replace dialog box includes an HTML Tags tab, which you can use to search for and replace HTML tags. You can search one or more Web page or an entire Web site. When you search multiple pages, the results appear in a Find panel, which makes it easy to view and work with the results in different page view. The Split view allows you to search for tags without having to change your view.

Find and Replace HTML Tags

  1. Find and Replace HTML Tags In the Folder List, open or select the one or more pages you want to search.

    • To select multiple pages, use Ctrl+click.

  2. Find and Replace HTML Tags Click the Edit menu, and then click Find.

  3. Find and Replace HTML Tags Click the HTML Tags tab.

  4. Find and Replace HTML Tags Click the Find tag list arrow, and then select the tag you want to find.

  5. Find and Replace HTML Tags If you want to replace the tag, click the Replace action list arrow, select an action, and then specify what you want to replace it with.

  6. Find and Replace HTML Tags Click the find where and direction options you want.

  7. Find and Replace HTML Tags Select the search parameters you want (Match case, Find whole word only, etc.).

    Did You Know?

    You can open the Find and Replace dialog box from the Find pane. Click the green arrow at the top of the Find pane to open the Find and Replace dialog box.

  8. You can open the Find and Replace dialog box from the Find pane. Select one of the following buttons:

    • Find All or Find Next button. Locates all instances or the next instance of the text.

    • Replace All or Replace button. Replaces all instances or the selected instance of the text.???

    Figure . 

    The list of pages containing the selected tags opens in the Find pane at the bottom of the Editing window.

  9. When Expression Web lists the pages in which the text you’re seeking was found (step four), you can open any of these pages by double-clicking the page from the list. The first instance of the text you’re looking for is highlighted. This text can be replaced via the Replace command.

  10. To continue searching the page, click the blue Next or Back arrows in the Find pane.

  11. When you’re done, click the Close button in the Find pane.

Did You Know?

You can display two different find results. Expression Web provides two Find panes. In the Find and Replace dialog box, you can select the one you want to use. This means you can work with two different find results at the same time.

You can save searches as a query. Perform a search using the Find and Replace dialog box, and then click the Save Query button. To open a previously save query, click the Open Query button.

Checking Spelling

Using Expression Web, you can correct spelling errors on a Web site immediately, or create a task for each page with an error and correct them later. Begin by opening the page whose spelling you want to examine. If you commonly use words unique to a hobby or profession that would not appear in a normal dictionary, or are unlikely to be part of the common vernacular, consider adding them to your dictionary so that they will not repeatedly be called into question during spell checks.

Check Spelling in a Web Page

  1. Check Spelling in a Web Page Open and display the Web page you want to check, and then click where you want to start checking.

  2. Check Spelling in a Web Page Click the Tools menu, point to Spelling, and then click Spelling.

    Timesaver

    Press F7.

    The program begins scanning the pages for words that aren’t in its dictionary.

  3. Timesaver Click the suggested word or type the correct word, and then click Change. Click Change All to correct all instances of the word.

  4. Timesaver If the unrecognized word is correctly spelled but the program doesn’t know it (as with a name, for example), click Ignore to ignore this instance of the word, or click Ignore All to ignore all instances of this word.

  5. Timesaver Click Add to add this word to your custom dictionary.

    Timesaver
  6. Timesaver When the spell checker reaches the end of the document, if it hasn’t searched the beginning, a prompt will ask if you want it to resume the search at the start of the document.

  7. Timesaver When you’re done, click OK.

Spell Checking in a Web Site

  1. Spell Checking in a Web Site If necessary, click the Panels menu, and then click Folder List to display the Folder List.

  2. Spell Checking in a Web Site Select the Web site or the pages you want to check. To select multiple pages, click the first page, and then press and hold down Ctrl while clicking the other pages.

  3. Spell Checking in a Web Site Click the Tools menu, point to Spelling, and then click Spelling.

  4. Spell Checking in a Web Site Click the Entire Web Site option or the Selected Page(s) option.

  5. Spell Checking in a Web Site Click Start.

    Spell Checking in a Web Site
  6. Spell Checking in a Web Site Double-click the first misspelled word in the list. If a misspelled word needs to be corrected, the Spelling dialog box opens. Otherwise, the Continue With The Next Page? dialog box opens.

  7. Spell Checking in a Web Site To correct a misspelled word, use the buttons in the Spelling dialog box to change or ignore the misspelled word. To continue spell checking the next page, click Next Page.

    Spell Checking in a Web Site
  8. Spell Checking in a Web Site If you want to stop the spell check or it is done checking all the pages, click Back To List.

  9. Spell Checking in a Web Site Click Cancel to close the Spelling dialog box.

    Spell Checking in a Web Site

Did You Know?

You can add a task for misspelled words. By assigning spelling corrections to Tasks, you can come back and correct them at your convenience. Click the Add a Task for Each Page With Misspellings check box to select it in the Spelling dialog box.

Using Custom Dictionaries

Before you can use a custom dictionary, you need to enable it first. You can enable and manage custom dictionaries by using the Custom Dictionaries dialog box. In the dialog box, you can change the language associated with a custom dictionary, create a new custom dictionary, or add or remove an existing custom dictionary. If you need to manage dictionary content, you can also change the default custom dictionary to which the spelling checker adds words, as well as add, delete, or edit words. If you mistakenly type an obscene or embarrassing word, such as ass instead of ask, the spelling checker will not catch it because both words are spelled correctly. You can avoid this problem by using an exclusion dictionary. When you use a language for the first time, Expression Web automatically creates an exclusion dictionary. This dictionary forces the spelling checker to flag words you don’t want to use.

Use a Custom Dictionary

  1. Use a Custom Dictionary Click the Tools menu, point to Spelling, and then click Spelling Options.

  2. Use a Custom Dictionary Click Custom Dictionaries.

  3. Use a Custom Dictionary Select the check box next to CUSTOM.DIC (Default).

  4. Use a Custom Dictionary Click the Dictionary language list arrow, and then select a language for a dictionary.

  5. Use a Custom Dictionary Click the options you want:

    • Click Edit Word List to add, delete, or edit words.

    • Click Change Default to select a new default dictionary.

    • Click New to create a new dictionary.

    • Click Add to insert an existing dictionary.

    • Click Remove to delete a dictionary.

  6. Use a Custom Dictionary Click OK to close the Custom Dictionaries dialog box.

    Use a Custom Dictionary
  7. Use a Custom Dictionary Click OK.

    Use a Custom Dictionary

Find and Modify the Exclusion Dictionary

  1. Find and Modify the Exclusion Dictionary In Windows Explorer, go to the folder location where the custom dictionaries are stored.

    • Windows Vista/7. C:Usersuser nameAppDataRoamingMicrosoftExpressionWeb 3legacyUProof

    • Windows XP. C:Documents and Settingsuser nameApplication DataMicrosoft ExpressionWeb 3legacyUProof

    Trouble?

    If you can’t find the folder, change folder settings to show hidden files and folders.

  2. Trouble? Locate the exclusion dictionary for the language you want to change.

    • The file name you want is ExcludeDictionary Language CodeLanguage LCID.lex.

      For example, ExcludeDictionary EN0409.lex, where EN is for English.

    Trouble?

    Check Word Help for an updated list of LCID (Local Identification Number) number for each language.

  3. Trouble? Open the file using Microsoft Notepad or WordPad.

  4. Trouble? Add each word you want the spelling check to flag as misspelled. Type the words in all lowercase and then press Enter after each word.

  5. Trouble? Save and close the file.

Checking Spelling for Languages

International Expression Web users can change the language that appears on their screens by changing the default language settings. Before you can use a different language, you need to install the Microsoft Expression Web Language Pack for the languages you want to use in a Web site. After you install a language, you can set the default language for a Web page, Web site, and a custom dictionary. If the text in your Web page is written in more than one language, you can designate the language of selected text so the spelling checker uses the right dictionary. However, the keyboard you use to enter text determines the language used by the spelling checker.

Mark Text as a Language

  1. Mark Text as a Language Open and display the Web page you want to use.

  2. Mark Text as a Language Select the text you want to mark.

  3. Mark Text as a Language Click the Tools menu, and then click Set Language.

    Mark Text as a Language
  4. Mark Text as a Language Click the language you want to assign to the selected text.

  5. Mark Text as a Language Click OK.

    Mark Text as a Language

Did You Know?

You can specify your keyboard layout. After you enable editing for another language, such as Hebrew, Cyrillic, or Greek, you might need to install the correct keyboard layout so you can enter characters for that language. The keyboard you use to enter text determines the language used by the spelling checker. In the Control Panel (Classic view), double-click the Regional and Language Options icon, click the Language (XP) or Keyboards and Languages (Vista) tab, and then click Details (XP) or Change Keyboards (Vista) to check your keyboard.

Set Default Spelling Language for a Web Site

  1. Set Default Spelling Language for a Web Site Open and display the Web site you want to use.

  2. Set Default Spelling Language for a Web Site Click the Tools menu, and then click Page Editor Options.

  3. Set Default Spelling Language for a Web Site Click the General tab.

  4. Set Default Spelling Language for a Web Site Click the Default Page Language list arrow, and then select a language.

  5. Set Default Spelling Language for a Web Site Click OK.

    Set Default Spelling Language for a Web Site

See Also

See “Changing Web Page Properties” on page 54 for information on setting the language used for spell checking on a Web page.

See “Using Custom Dictionaries” on page 108 for information on setting the language used for a custom dictionary.

Checking Spelling as You Type

As you type, a red wavy line appears under words not listed in Expression Web’s dictionary (such as misspellings or names) or duplicated words (such as the the). You can correct these errors as they arise. When Expression Web learns the spellings of words you use regularly, it even automatically corrects some errors as you type. If the unrecognized work is correct, you can add it to the dictionary.

Enable Check Spelling and Grammar Options

  1. Enable Check Spelling and Grammar Options Click the Tools menu, point to Spelling, and then click Spelling Options.

  2. Enable Check Spelling and Grammar Options Select the Check spelling as you type check box.

  3. Enable Check Spelling and Grammar Options Click OK.

    Enable Check Spelling and Grammar Options

Correct Spelling and Grammar as You Type

  1. Correct Spelling and Grammar as You Type In a Web page, right-click a word with a red wavy underline.

  2. Correct Spelling and Grammar as You Type Click a substitution, or click Ignore All to skip any other instances of the word.

    Correct Spelling and Grammar as You Type

Did You Know?

You can remove the red wavy line. Click the Tools menu, point to Spelling, click Spelling Options, select the Hide spelling errors check box, and then click OK.

Finding the Right Words

Repeating the same word in a Web page can reduce a message’s effectiveness. Instead, replace some words with synonyms, words with similar meanings, or find antonyms, words with opposite meanings. If you need help finding exactly the right word, you can use the Thesaurus.

Use the Thesaurus

  1. Use the Thesaurus Open and display the Web page you want to use.

  2. Use the Thesaurus Select the word you want to look up.

  3. Use the Thesaurus Click the Tools menu, and then click Thesaurus.

    Use the Thesaurus
  4. Use the Thesaurus Click a word to display its synonyms and antonyms.

  5. Use the Thesaurus Click the word you want to use or type one you want.

  6. Use the Thesaurus Click Replace.

  7. Use the Thesaurus Click Cancel.

    Use the Thesaurus

Changing Default Text

When you type text in a page, Expression Web applies a set of default text attributes. You can change the default text for Design and Code views. In Design view, you can change the default proportional and fixed-width fonts. A proportional font has variable spacing between letters, while a fixed-width font has the same spacing between letters. Proportional fonts are typically used for Web page text, while fixed-width fonts are typically used for working with code. When you are working with large amounts of text, a fixed-width font is easier to read.

Change Default Text

  1. Change Default Text Click the Tools menu, and then click Page Editor Options.

  2. Change Default Text Click the Default Fonts tab.

  3. Change Default Text Click the language you want as the default.

  4. Change Default Text Select the defaults fonts you want for Design view.

  5. Change Default Text Select the default font and size you want for Code view.

  6. Change Default Text Click OK.

    Change Default Text

Creating and Changing Font Families

Instead of applying one font to text in a Web page, you can apply a set of fonts, known as a font family, in order to increase the likelihood that the visitor’s computer system will have one of the fonts you specify. Expression Web comes with a few font families when you install the program, such as Arial, Helvetica, sans-serif. You can modify an existing font family or create your own. When you create your own, use fonts that are the same relative size, so using any of the fonts in the font family looks the same on any computer.

Create and Change Font Families

  1. Create and Change Font Families Click the Tools menu, and then click Page Editor Options.

  2. Create and Change Font Families Click the Font Families tab.

  3. Create and Change Font Families Click (New Font Family) to create a new one or click an existing one to change it.

  4. Create and Change Font Families To add a font to a family, select a font, and then click Add.

  5. Create and Change Font Families To remove a font families, select the font family, and then click Remove.

  6. Create and Change Font Families To change the priority order, select a font family, and then click Move Up or Move Down.

  7. Create and Change Font Families Click OK.

    Create and Change Font Families

Inserting Text from a File

If you have a word processing document that you want to use as a Web page, you can copy all or part of the text file, and then use the Paste Text command on the Edit menu to insert the contents. Expression Web allows you to copy text in several formats, including Rich Text Format (.rtf), Text Files (.txt), Word 2007 (docx), Word 97-2003 (.doc), and HTML (.htm, .html).

Paste Text from a File

  1. Paste Text from a File Open document with the text you want to paste into a Web page.

  2. Paste Text from a File Select the text you want to use, copy the text, and then exit the program.

    Paste Text from a File
  3. Paste Text from a File In Expression Web, open and display the Web page you want to use.

  4. Paste Text from a File Click where you want to insert the content of the file.

  5. Paste Text from a File Click the Edit menu, and then click Paste Text.

  6. Paste Text from a File If necessary, select an option, and then click OK.

    Paste Text from a File

See Also

See “Moving and Copying Text” on page 84-85 for more information on selecting paste text options.

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

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