HTML: the major elements and their attributes

Required Reading

References:

  1. interactive HTML tools
  2. HTML Tag lists
  3. HTML Specifications


HTML II: Survey of the major HTML elements

In this lecture, we describe all of the basic HTML elements which I will expect you to know, and their primary attributes. For more details on these elements, see the
  • WDG Tag reference. The elements and attributes presented below are supported by almost all browsers.


    Top-level elements


    Head elements


    Generic Block-level Elements


    Lists


    Special Inline Elements


    Phrase Elements


    Font Style Elements


    Tables

    is made by the following code:
    <table bgcolor=yellow border=10 cellpadding=20 cellspacing=5>
    <tr>
    <th>heading 1</th> <th>heading 2</th>  <th> etc.,</th>  <th> etc.,</th> </tr>
    <tr>
      <td bgcolor= green> green</td> 
      <td bgcolor=red>red</td> 
      <td bgcolor=white>white</td>
      <td bgcolor=yellow>yellow</td>
    </tr>
    <tr>
      <td>green?</td> 
      <td>red?</td> 
      <td>white?</td>
      <td>yellow?</td>
    </tr>
    <tr>
      <td>green?</td> 
      <td rowspan=2 bgcolor=lightgreen>lightgreen</td> 
      <td colspan=2 bgcolor=lightblue>lightblue</td>
    </tr>
    <tr>
      <td>green?</td> 
      <td>red?</td> 
      <td>white?</td>
    </tr>
    <tr>
      <td><font color=green>green font</td> 
      <td><font color=red >red font</td> 
      <td>white?</td>
      <td>yellow?</td>
    </tr>
    </table>
    

    Try cutting and pasting sample tables into the HTML demo page to see how they come out.


    Forms, Frames