Formatting tables for the Web in Word

Applies to
Microsoft Word 2000

Tables are commonly used on Web pages to organize and present information in rows and columns, in much the same way tables are used in print documents. There's a big difference though - Web tables are made up of Hypertext Markup Language (HTML) tags and can take hours to create. But now in Word you can easily make tables to display information on the Web, without having to know how to work with HTML tags.

Turn an ordinary table into a Web table

Start by making a table with the Draw Table tool or the Insert Table command, just as though you're working with a table for a print document. Insert text or graphics, just as you would with any other table. On the File menu, click Save as Web Page. You've created a Web table.

Formatting options

You can format Web tables any way you want to, or leave the format as it is when the table is initially created. To get a "Web look," you can apply one of the new Web style formats. To automatically apply the formatting you want, click the table, click Table AutoFormat on the Table menu, and then click the format you want in the Formats box.

The Table AutoFormat dialog box, which shows the new Web formatting styles of Web 1, Web 2, and Web 3

If you'd prefer to create your own format, you can select either an Outset or Inset Web border style in the Borders and Shading dialog box to get a "Web look," or you can apply any other style you'd like. To change borders on tables, click anywhere in the table, click Borders and Shading on the Format menu, and then click the Borders tab and select a border style.

The Borders and Shading dialog box, which shows the new Outset and Inset border styles.

Whether you choose a predefined format or apply a border style yourself, you can also control the amount of space between table cells and in the space between text and the inside cell margin.

  • Apply cell spacing - space between cells - in the Table Options dialog box. Just select the Allow spacing between cells check box and enter the measurement you want.

Cells in a table with Web-style formatting with callouts for cell spacing and cell padding

  • Apply cell padding - space between text and the inside margin of the cell - in the Table Options dialog box. Just enter the new values you want under Default Cell margins.

To change cell spacing and cell padding

  1. Click the table.
  2. On the Table menu, click Table Properties, and then click the Table tab.
  3. Click Options.