Results 1 to 3 of 3

Thread: How to create Tables in HTML ?

  1. #1
    Join Date
    Feb 2009
    Posts
    12

    How to create Tables in HTML ?

    Hello friends

    I just started learning HTML going good now i want to create table in HTML can anyone tell me how to create table in HTML ? I have basic knowledge of HTML.

  2. #2
    Join Date
    Oct 2008
    Posts
    54

    Re: How to create Tables in HTML ?

    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). The letters td stands for "table data," which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.

    TR defines a Table Row - a table is made up of any number of any number of rows, depending on how you design it. Each row in turn contains cells,

    TD - TD elements are used for data

    TH - TH elements are used for row or column headings

    The <table> tag defines an HTML table.


    A simple HTML table consists of the table element and one or more tr, th, and td elements.


    Code:
    <html>
    <table border="1"><tr><TH>Heading 1   <TH> Heading 2 </TH></tr>
    <tr>
    <td>1</td>
    <td> A</td>
    </tr>
    <tr>
    <td>2</td>
    <td>B</td>
    </tr>
    </table>
    </html>

  3. #3
    Join Date
    Aug 2008
    Posts
    145

    Re: How to create Tables in HTML ?

    The color of the table borders as a whole is set with the BORDERCOLOR attribute of the <TABLE ...> tag. For example, this code sets the border to red:

    <TABLE BORDER=2 BORDERCOLOR= BLUE>
    <TR> <TD>carrots</TD> <TD>garlic</TD> </TR>
    <TR> <TD>celery</TD> <TD>onions</TD> </TR>
    </TABLE>

Similar Threads

  1. How To Create Tables in Flash
    By sweetsriheart in forum Software Development
    Replies: 1
    Last Post: 03-09-2010, 05:18 PM
  2. How to create MySQL Database and Tables in PHP?
    By Orton in forum Software Development
    Replies: 4
    Last Post: 23-02-2010, 06:45 AM
  3. HTML layout tables expand
    By taher in forum Software Development
    Replies: 3
    Last Post: 08-09-2009, 01:34 PM
  4. Sample database script to create tables
    By Naresh Modi in forum Software Development
    Replies: 3
    Last Post: 12-08-2009, 02:17 PM
  5. create tables in MS Access through VB6
    By Derek in forum Software Development
    Replies: 2
    Last Post: 11-10-2008, 03:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,559,741.04011 seconds with 17 queries