To add code to the page manually, click in Code view and start typing. You can use the code hints feature to speed up your work.
In this section, youll use code hints to add the street sign image to the Cafe Townsend index page.
Now youll use code hints to reinsert the image, instead of dragging it from the Assets panel as you did in Tutorial: Adding Content to Pages.
In Code view, the insertion point should be between an open and a close paragraph tag, as follows:
If you dont see an open and a close paragraph tag before the closing table cell </td> tag, type them in as follows:
Place the insertion point between the opening <p>
tag and the closing <p>
tag.
<p>
tag and the closing <p>
tag, for example, a nonbreaking space ( ).
<p>
tag and the closing <p>
tag, type an opening angle bracket (<).
A list of tags appears at the insertion point.
NOTE |
|
You can set the length of the delay before the list appears by selecting Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh), and then selecting Code Hints from the category list on the left. In Code view, you can display a code hints menu at any time by pressing Control+Spacebar, and you can close a code hints menu at any time by pressing Escape. |
img
tag from the list, and then press Enter (Windows) or Return (Macintosh) to insert the first part of the tag.
TIP |
|
To quickly scroll to a tag, start to type the tag name. |
src
attribute is selected in the hints menu.
The word Browse appears, selected, below the code you just typed.
The URL of the image file is inserted as the value of the src
attribute, and the insertion point appears after the closing quotation mark.
alt
attribute from the hints menu, and press Enter (Windows) or Return (Macintosh).
Use the Right Arrow key to move the insertion point to the right of the quotation marks.
TIP |
|
To add an attribute to an existing tag, place the insertion point just after the tags final attribute value and press the Spacebar. When a list of attributes appears, add an attribute and specify a value, if any. |