HTML and CSS Reference
In-Depth Information
CHAPTER SUMMARY
This chapter introduced the use of visual elements and graphics on Web pages. As you
continue to create Web pages, refer to the guidelines and accessibility issues related to
graphics. The number one reason visitors leave Web pages is long download times.
When using images, be careful to minimize download time. Also, provide alternatives to
images (such as text links) and use the alt attribute on your pages.
Visit the textbook Web site at http://www.webdevfoundations.net for examples, the
links listed in this chapter, and updated information.
Key Terms
<area />
<hr />
<img />
<map>
alt attribute
animated GIFs
antialiasing
background-image property
background-repeat property
border property
border-color property
border-style property
border-width property
favicon
gamma
GIF
halo effect
height attribute
hotspots
hspace attribute
image link
image map
image optimization
image slicing
interlaced image
JPEG
longdesc attribute
lossless compression
lossy compression
min-width property
padding property
pixelation
PNG
progressive JPEG
resolution
src attribute
thumbnail image
transparency
usemap attribute
vspace attribute
width attribute
Review Questions
Multiple Choice
1. Which CSS property is used to change the back-
ground color?
a. bgcolor
b. background-color
c. color
d. none of the above
3. Which of the following creates an image link to
the index.html page when the home.gif graphic is
clicked?
a. <a href="index.html" src="home.gif"
alt="Home"></a>
b. <a href="index.html"><img
src="home.gif" alt="Home" /></a>
c. <img src="home.gif" href="index.html"
alt="Home">
d. none of the above
2. Which is the correct CSS syntax to configure the
text color dark blue (#000033)?
a. body: color=#000033
b. { body color:#000033 }
c. body { color:#000033 }
d. body { text-color:#000033 }
150
 
Search WWH ::




Custom Search