How to Add a Table to a Web Page

Tables organize text, links and objects on a Web page.

Things You'll Need

  • Text-editing program
Show More

Instructions

    • 1

      Open a text-editing program, such as EditPad or Notepad. Select Open from the File menu.

    • 2

      Locate the Web page file and open it.

    • 3

      Place the cursor where the table will appear.

    • 4

      Type the following:

      This tag tells the browser to begin a table; "border" allows you to view the border.

    • 5

      Add the following to the next line:

    • This tag, which stands for "table row," begins the first row.

    • 6

      Type the following:

    • These tags mean "table data"; the information in the middle (First Cell) is the data contained in this cell.

    • 7

      Type

    • to begin another column.

    • 8

      End the row by typing

    • . Add another row by typing .

    • 9

      Add the second column by typing

    • . Close the row by typing .

    • 10

      Type

    • First Cell Second Cell
      Second Row, First Cell Second Row, Second Cell
      to close the table. Save the file.

    • 11

      Start a Web browser and select Open from the File menu. Locate the file and click Open to view it.

Tips & Warnings

  • Increase the border size by typing the following:

    , adjusting the border size as desired.

  • Remove the word border from the table tag to display a table without a border.

  • One row can stretch across two columns (as in a header) by typing the following:

  • . If you have more than two columns, change the number to fit.

  • To make one column stretch to the height of two rows, type the following:

  • , adjusting the number to fit the number of rows to be spanned.

    Related Searches:

    Comments

    You May Also Like

    Related Ads

    Featured