Yorkville High School Computer Science Department
Yorkville High School Computer Science Department on Facebook  Yorkville High School Computer Science Department Twitter Feed  Yorkville High School Computer Science Department on Instagram

Yorkville High School Computer Science

ASSIGNMENTS: No Current Assignments

Web Design :: Lessons :: Tables

Adding Tables

Information from W3 Schools:
Tables are defined with the <table> tag.

A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links, images, lists, forms, other tables, etc.

Tables can be used just as you use them in Microsoft Word. You can use tables for holding rows and columns of data. You can also use tables to layout a web page, but that method of page layout is out-of-date so you should use divs and CSS instead. Tables can be tricky to make even using Dreamweaver. For an alternative, try the HTML Table Generator that will create the HTML and CSS code for you.

  1. Open your Lessons site.
  2. Create a new page called "tables.html".
  3. Go to Insert>Table.

Adding Tables

The table window has a number of options you can change:

Modifying Tables

After you have added a table there are a number of ways to modify it. The first is the Properties Pane at the bottom of the screen.

Table Properties

You can use CSS to change the look of the table including the border, background, and font color.

Finally, the Modify>Table menu option has a few more table options. A major option available in this menu is the ability to delete rows and columns. You can also merge two or more cells into a single cell.

Yorkville High School Computer Science Department on Facebook Yorkville High School Computer Science Department Twitter Feed Yorkville High School Computer Science Department on Instagram