How To

How to Define a Table Cell in HTML

Contributor
By eHow Contributing Writer
(1 Ratings)

HTML tables are composed of rows, which in turn are composed of cells. The cells are defined using the element.

Difficulty: Easy
Instructions

Things You'll Need:

  • Text or HTML editor

    Define a Table Cell With HTML

  1. Step 1

    Find or create a table in the HTML file (

    element) in which you want to define a cell.

  2. Step 2

    Find or create a row within the table (

  3. element) to which you want to add a cell.

  4. Step 3

    Define the cell by placing its content between an opening

  5. tag. The content will typically be text, but could be any HTML construct, such as an image.

  6. Step 4

    Give additional formatting to the cell by adding a class or style attribute, or cell-specific attributes such as width. The cell will also inherit formatting information from the

  7. element for the column of which it is a part, if any.

    Tips & Warnings
    • Table cells can also be part of table headers (
    element) and table footers ( element).

    Post a Comment

    Post a Comment
    • Have you done this? Click here to let us know.
    I Did This

    Related Ads

    Internet
    Virginia DeBolt,

    Meet Virginia DeBolt eHow's Internet Expert.

    Get Free Internet Newsletters

    Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US

    Demand Media
    eHow_eHow Technology and Electronics
    and closing