HTML Table Basics!
Directions: Read the following article and send me an email answering the following questions.
1. True or False: The table, row and cell tags all have cancel tags.
2. True or False: To create each row within a table you would first use the row tag <tr> to start a row then the cell tag <td> to edit the content of each cell within the row.
I. Introduction
You may want to consider using HTML tables in your website. In addition to creating HTML tables to present data in rows and columns, you can also create HTML tables to organize information on your web page.
The process of creating an HTML table is similar to the process that you used to create your web page and any elements that you may have already included in your pages. Coding HTML tables into your web page is fairly easy since you need only understand a few basic table codes.
II. Creating a basic table
The basic structure of an HTML table consists of the following tags:- Table tags: <TABLE> </TABLE>
- Row tags: <TR> </TR>
- Cell tags: <TD> </TD>
The following table is an example of a basic table with three rows and two columns of data.
Data 1 | Data 2 |
Data 3 | Data 4 |
Data 5 | Data 6 |
<TABLE> <TR> <TD>Data 1</TD> <TD>Data 2</TD> </TR> <TR> <TD>Data 3</TD> <TD>Data 4</TD> </TR> <TR> <TD>Data 5</TD> <TD>Data 6</TD> </TR> </TABLE>
This table contains no border, title, or headings. If you wish to add any of these elements to your table, you need to include additional HTML codes.
No comments:
Post a Comment