Adding Text


Most of the text on a Web page is formatted in blocks , which are enclosed by beginning and ending HTML tags. For example, the HTML for a line of text with paragraph tags wrapped around it looks like this:

 <p>This text is wrapped in beginning  and ending paragraph tags.</p> 

In order for a browser to understand that this is a paragraph, you (or in this case, Dreamweaver) have to make it one by adding the surrounding <p> tags.

Of course, in Dreamweaver's Design view, you won't see the HTML tags. All of the text contained between the opening <p> tag and the closing </p> tag is considered by a Web browser to be within the same paragraph, no matter how much text is between the tags. The <p>…</p> combination is an example of a container tag . Virtually all of the structural formatting that you can apply with Dreamweaver is done with container tags.

When you add text to a page with Dreamweaver, the program automatically wraps the text with paragraph tags when you press the Enter (Return) key on your keyboard. You can see this if you switch to the Code view, by clicking the Code button at the top of the Dreamweaver editing window, as shown in Figure 4.1 .

Figure 4.1. Dreamweaver adds paragraph tags around text when you press the Enter (Return) key.


Dreamweaver also has special commands that help you import entire Microsoft Word or Excel documents as Web pages. (See "Using Paste Special," later in this chapter, and Chapter 14 for more information.)

To insert text:

1.
In Dreamweaver's Design view, click on the page where you want to add text.

2.
Type the text you want.

Selecting Text

Besides selecting text by dragging over it with the mouse cursor, Dreamweaver also gives you some text selection shortcuts:

  • Double-click on a word to select it.

  • Move your cursor to the left of a line of text until the cursor changes from an I-beam to an arrow pointing at the text. Then click once to highlight a single line, or drag up or down to select multiple lines.

  • Triple-click anywhere in a paragraph to select the entire paragraph.

  • For finer control over selecting individual letters , hold down the Shift key and press the left or right arrow keys to extend the selection one letter at a time.

  • Ctrl-Shift (Cmd-Shift) plus the left or right arrow key extends the selection one word at a time. Ctrl (Cmd) plus the left or right arrow key moves the cursor one word to the left or right.

  • Press Ctrl-A (Cmd-A) to Select All (the entire contents of the current document).





Macromedia Dreamweaver 8 for Windows & Macintosh Visual QuickStart Guide
Macromedia Dreamweaver 8 for Windows & Macintosh
ISBN: 0321350278
EAN: 2147483647
Year: 2005
Pages: 239

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net