Workshop


The workshop contains quiz questions and activities to help you solidify your understanding of the material covered. Try to answer all questions before looking at the "Answers" section that follows.

Quiz

1:

How would you insert an image file named elephant.jpg at the very top of a web page?

2:

How would you make the word Elephant appear whenever the actual elephant.jpg image couldn't be displayed by a web browser?

3:

Write the HTML code to make the elephant.jpg image appear on the right side of the page, with a big headline reading "Elephants of the World Unite!" on the left side of the page next to it.

4:

Write the HTML code to make a tiny image of a mouse (named mouse.gif) appear between the words "Wee sleekit, cow'rin," and the words "tim'rous beastie."

Answers

A1:

Copy the image file into the same directory folder as the HTML text file, and type <p><img src="/books/4/158/1/html/2/elephant.jpg" alt="" /></p> immediately after the <body> tag in the HTML text file.

A2:

Use the following HTML:

 <img src="/books/4/158/1/html/2/elephant.jpg" alt="elephant" /> 


A3:

 <img src="/books/4/158/1/html/2/elephant.jpg" alt="Elephant" style="float:right" /> <h1>Elephants of the World Unite!</h1> 


A4:

Wee sleekit, cow'rin,<img src="/books/4/158/1/html/2/mouse.gif" alt="" />tim'rous beastie




SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net