HTML and CSS Reference
In-Depth Information
5.
In your browser, open tpa.html .
6.
Return to your text editor and press Enter (Return) to create a new line after the just-entered
code.
7.
Enter the following code:
<br /><img src=”images/tpa_name.gif” width=”373” height=”37” alt=”Trans
Planet Airlines” />
8.
Save your file.
9.
In your browser, refresh the page to confirm that both images appear, as shown in
Figure 10-4.
FiGure 10-4
usinG Links wiTH iMaGes
Linking from an image is exactly the same as linking from text. Instead of surrounding one or more
words with an <a> tag, you use an <img> tag:
<a href=”bigco.html”><img src=”bigco_logo.gif” width=”300” height=”200”
alt=”BigCo, Home of the Big Products”></a>
Search WWH ::




Custom Search