return to main page

The <img> tag

To place an image in a web page use the<img> tag.
The following attributes are the most common.

<img src="../images/cute_dog.jpg" alt="Picture of a super cute puppy!" >

A picture of a cute dog named Dee Oh Gee

 

 

 

 

The <table> tag

This tag originally was created to put charts and spreadsheets on an HTML page.
Web page authors found it worked well as a layout tool. Below is a slightly
enhanced version of the code above. Hover over the table tag and the last td
tag to see the real HTML code. (This tooltip is a bit flakey in Safari.)

 

 

<table>
  <tr>
    <td>
      This is a data cell in an html table.
    </td>
    <td>
      This is the second cell.
    </td>
  </tr>

  <tr>
    <td>
      The second tr tag puts this data on a new row.
    </td>
    <td>
      ...the last cell, second row, blue background.
    </td>
  </tr>
</table>

 

This is a data cell in a html table. This is the second cell.
The second tr tag puts this data on a new row. ...and this is the last cell, second row, blue background.

 

 

 

 

 

return to main page