Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Workshop

Quiz

  1. Write the HTML to produce the following:

    Come for cheap free H2O on May 7 th at 9:00PM

  2. What's the difference between the following two lines of HTML?
    deep <tt>s p  a   a  c e</tt> quest
    
    deep <pre>s p  a   a  c e</pre> quest
    
  3. How would you say, "We're having our annual Impeachment Day SALE today," in normal-sized blue text, but with the word "SALE" in the largest possible size in bright red?
  4. How do you say "© 1996, Webwonks Inc." on a Web page?

Answers

  1. come for <strike>cheap</strike> free h<sub>2</sub>o on may
    7<sup><u>th</u></sup> at 9:00<small>pm</small>
    								
  2. The line using <tt> will look like this:

    deep s p a a c e quest

    The line using <pre> will produce the following three lines of text on the Web page.

    deep
    s p  a   a  c e
    quest
    
  3. <font color="blue">We're having our annual Impeachment Day
    <font color="red" size=7>SALE</font> today!</font>
    								
  4. &copy; 1996, Webwonks Inc.
    								
    The following produces the same result:
    &#169; 1996, Webwonks Inc.
    

Exercise

  • Professional typesetters use small capitals for the AM and PM in clock times. They also use superscripts for dates like the 7th or 1st. Use the <small> and <sup> tags to typeset important dates and times correctly on your Web pages.

Share ThisShare This

Informit Network