Hyperlinking
Style
Sheets Practice
La Honda Bistro
To insert images on a page, you can use the Insert Image icon on the Common Objects panel. You can also insert an image by selecting image from the Insert menu or by using the shortcut key sequence, Ctrl+Alt+I. Each option allows you to browse your local drive and select an image via the Select Image Source dialog box. This helps avoid errors when you type file names and directory locations. A preview of the image appears on the right side of the dialog box to ensure that you select the correct file.
As with hyperlinks, you can provide absolute or relative names for image files. Using a relative address usually makes more sense. In any Web page file, you could use this command to insert a graphic image: <img src="images/image-name.gif">
Using the Insert Image option generates code that does this for you. Then, you can change attributes of the image in two ways. First, you can select the image by clicking it. Tiny black squares, called handles, appear around the image. You can resize the image by holding the mouse button down on the squares and dragging it to the desired size. The image skews (becomes tall and thin or short and wide) unless you also hold down the Shift key. Holding down the Shift key allows you to resize the image and maintain its proportions.
The image Property inspector displays the image size in kilobytes (KB) and in terms of width and height. Use the blank text box for adding a name identifier to the image, useful if you create an image map.
Gain a little practice with the La Honda Bistro Project by inserting a few images into the table that holds them in the practice session below.
View or Print Hands-On Exercise in
.PDF format.
La
Honda Bistro Images in Tables
Images used in the practice session can be found here if you are not in the college lab.
Copy these images lhblogo.gif | lhbabout.gif | lhbmenus.gif | lhbcatering.gif | lhbdirections.gif and place into the bistro\images folder.
To insert a horizontal rule or line on a Web page, you can use the Insert Horizontal Rule icon on the Common Objects panel. You can also insert a rule using the Horizontal Rule command on the Insert menu. A horizontal rule is inserted automatically on the Web page at the insertion point. To change the attributes of the rule, click to select it and examine the rule Property inspector. Here are the settings I used to make the Horizontal Rule shown above.
Unlike images and tables, rules cannot be resized by dragging your mouse. You must change the attributes in the Property inspector if you want the rule’s appearance to differ from the default. The attributes you can control are the rule name, the width (either as a percentage of the browser window or in pixels), the height in pixels, rule alignment, and shading.
Page Updated on June 4, 2004