1.2 HTML1 - Basic HTML Tags

Index Code Tester

OBJECTIVE

DISCUSSION

Main Tags
Paragraph and Formatting Tags
Attributes
Setting Font without the <font> tag

<div style = "font-family: arial; font-size: 12; color:red">hi</div>

Special Characters

EXERCISES

  1. Visit the following link and experiment with the examples: http://www.w3schools.com/html/html_formatting.asp
  2. What is a good use for the <pre> tag?
  3. Create a page that meets the following requirements
  1. It centers large text on the page.
  2. It displays superscript or subscripts.
  3. It uses <div> and <span> tags. 
  4. A set of <div> tags is nested inside another set of <div> tags.
  5. A set of <span> tags is nested in a <div> tag.
  6. It has a horizontal line.
  7. One of the paragraphs is right justified.
  8. It uses style properties to set the color, size, and family of the font in at least one of the <div> tags.
  9. It uses special characters (other than &nbsp) at least five times.
  10. It uses the <pre> tag to format text.

Click the following button for an example of a page that meets #3 requirements:  

  • LINKS AND HELP

    Basic Tags at: http://www.w3schools.com/html/html_elements.asp
    http://www.w3schools.com/html/html_primary.asp
    Formatting Tags at:
    http://www.w3schools.com/html/html_formatting.asp
    List of Tags:  http://www.w3schools.com/html/html_reference.asp
    Span explanation: http://www.htmlgoodies.com/tutors/html4_span.html