1 / 15

Table Cell Structure and Formatting in HTML

Learn how to create a table with different cell structures and formatting using HTML code. Understand row and column spans, cell color, and alignment.

jorgeo
Download Presentation

Table Cell Structure and Formatting in HTML

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. 1 COLUMN 1 ROW

  2. Browser View

  3. Browser View My Schedule

  4. <TR> <TD> 1</TD> <TD> 2</TD> </TR>

  5. <TR> <TH>1</TH> <TH>2</TH> </TR> <TR> <TD>3 </TD> <TD>4</TD> </TR>

  6. two rows The General Table Syntax <table> <tr> <td> First Cell </td> <td> Second Cell </td> </tr> <tr> <td> Third Cell </td> <td> Fourth Cell </td> </tr> </table> two columns

  7. four table cells in the first row only three table cells are required for the second and third rows HTML code resulting table A Table Structure with a Row-Spanning Cell

  8. <TR><TH COLSPAN="2“>TABLE TITLE</TH>   </TR><TR>      <TD>Column A</TD>      <TD>Column B</TD>   </TR><TR > <TD>Data 1</TD>      <TD>Data 2</TD>   </TR>

  9. <TR> <TH ROWSPAN="2“ >TABLE HEADER</TH> <TR> <TD>TABLE CELL 1 </TR> <TR> <TD>TABLE CELL 2</TD> </TR>

  10. <TR> <TD COLSPAN=4 >The Brady Bunch </TD> <TR> <TD ROWSPAN=3 >Cast <TD>Marcia <TD>Carol <TD>Greg </TR> <TR> <TD>Jan <TD>Alice <TD>Peter <TR> <TD>Cindy <TD>Mike <TD>Bobby

  11. table header Browser View align center cellspacing tableborder columnspan cell padding

  12. Adding Spanning Cells to a Table

  13. Row Color <HTML><HEAD> <TITLE>Simple Table</TITLE> </HEAD><BODY> <TABLE BORDER=3 CELLPADDING=3 ALIGN=CENTER> <TR BGCOLOR=YELLOW> <TD COLSPAN=3 ALIGN=CENTER >The Brady Bunch <TR><TD>Marcia<TD>Carol<TD>Greg <TR><TD>Jan<TD>Alice<TD>Peter <TR><TD>Cindy<TD>Mike<TD>Bobby </TABLE> </BODY></HTML>

  14. Cell Color <HTML><HEAD> <TITLE>Simple Table</TITLE> </HEAD><BODY> <TABLE BORDER=3 CELLPADDING=3 ALIGN=CENTER> <TR><TD COLSPAN=3 ALIGN=CENTER>The Brady Bunch <TR><TD>Marcia<TD>Carol<TD>Greg <TR><TD>Jan <TD BGCOLOR=PINK>Alice<TD>Peter <TR><TD>Cindy<TD>Mike<TD>Bobby </TABLE> </BODY></HTML>

More Related