Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

204 LESSON 9: Using Images on Your Web Pages


If one image is good, two would be really good, right? Try adding another <img> tag next
to the first one, as follows, and see what happens:

Input ▼
<div><img src="haunted_house.png" alt="House of Terror">
<img src="haunted_house.png" alt="House of Terror"></div>
<h1>Welcome to The Halloween House of Terror</h1>

FIGURE 9.2
The Halloween
House home page
with the haunted
house.


Free download pdf