1 / 9

CHAPTER 6 TABLE CREATING

CHAPTER 6 TABLE CREATING. Table. Html provides codes that allow the user to create and enhance tables. Useful for organizing large bodies of information so that the reader can quickly see the overall picture. Organize the text into column and rows.

azure
Download Presentation

CHAPTER 6 TABLE CREATING

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CHAPTER 6TABLE CREATING

  2. Table • Html provides codes that allow the user to create and enhance tables. • Useful for organizing large bodies of information so that the reader can quickly see the overall picture. • Organize the text into column and rows. • The intersection of a column and row is known as a cell. • Can include links in table, so the user can click a cell to jump to another location to see more information. • Can include graphics in table.

  3. Create simple table • Start with a <TABLE> tag and end your table with </TABLE> tag. Example: <TABLE> </TABLE> • If you want the table have a border, add a BORDER=VALUE in < TABLE> tag. Example:<TABLE BORDER=2> </TABLE> • You can create table row and individual cell in one table.

  4. Table row • Use <TR> </TR> tag. • Can contain one or more cell on information. • Type/insert after <table> tag. • Example: <TABLE> <TR> : </TR> </TABLE>

  5. Individual cells • Must be type in table tag, after <TR> tag. • Use <TD> </TD> tag. • TD = table data. • Example : <TABLE> <TR> <TD> INTERNET PROGRAMMING </TD> </TR> </TABLE>

  6. Sizing a table • We can control the size of the entire table by putting the width and height attributes in <TABLE> tag. • To control the size of cell we can put width and height attribute in <TD> tag. • The value of weight and height can be either pixels or percentages. • Example: <TABLE WIDTH=500 HEIGHT=400></TABLE> <TD WIDTH=30%></TD> <TD WIDTH=70%></TD>

  7. Table alignment • We can aligned the table to the left and vertically centered. • Can align the contents of table cell both horizontally and vertically. • To set the alignment we can use ALIGN and VALIGN attributes. • Can insert ALIGN and VALIGN into <TR> or <TD> tags. • Example: <TR ALIGN=“CENTER”>

  8. Table spanning • Use COLSPAN and ROWSPAN. • Add COLSPAN and ROWSPAN after <TD> tag. • COLSPAN: used to create a cell that spans more than one column. • ROWSPAN: used to create a cell that spans more than one row. • Example : <TD COLSPAN=2></TD> <TD ROWSPAN=3></TD>

  9. Table background • Add BGCOLOR or BACKGROUND attribute in the <TABLE>, <TR> or <TD> tags. • Example : • To set an entire table: <TABLE BGCOLOR=“RED”>

More Related