doing tables creating tables in html. start creating the table by using the table container tag

15

Click here to load reader

Upload: barbra-lindsey

Post on 19-Jan-2018

213 views

Category:

Documents


0 download

DESCRIPTION

Rows and Columns Tables have ROWS and COLUMNS

TRANSCRIPT

Page 1: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

Doing TABLES

Creating Tables in HTML

Page 2: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

Creating Tables in HTML<TABLE>•Start creating the table by using the Table container tag

</TABLE>

Page 3: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

Rows and Columns

• Tables have ROWS and COLUMNS

• <= Rows

Page 4: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

Columns

Page 5: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

Tables make little boxes

• Boxes help to ORGANIZE information

Page 6: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

Start with the usual HEAD stuff

• <HTML>• <HEAD>• <TITLE> A Simple Table</TITLE>• </HEAD>• <BODY>

Page 7: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

Start the TABLE Stuff

<TABLE ALIGN=middleBGCOLOR=YellowBORDER=5CELLPADDING=5CELLSPACING=5

WIDTH=75%>

Page 8: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

Add the ROWS and COLUMNS

• <TR> tag starts a new table ROW

• <TD> tag starts a new COLUMN

These are MY Favorite Hobbies

Page 9: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

These are My Favorite Hobbies

Page 10: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

makes a new column

<TR> makes a new column<TD> makes a new ROW

ALIGN=MiddleCOLSPAN=3><B>My Favorite Hobbies</B>

</TD>

</TR>

Page 11: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

Second ROW

<TR> Start the second Row<TD ALIGN=Middle>BOWLING</TD><TD ALIGN=Middle>The Internet</TD><TD ALIGN=Middle>Sewing</TD>

</TR></TABLE></BODY></HTML>

Page 12: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

These are MY Favorite Hobbies

Bowling The Internet Sewing

Page 13: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

ATTRIBUTE TAG DESCRIPTION Example

BORDER Size of border around table

<TABLE BORDER = 1>

BGCOLOR Color of the table <TABLE BGCOLOR=“RED”>

CELLSPACING Thicker lines between the cells

<TABLE CELLSPACING=5>

CELLPADDING More space around the text inside the cells

<TABLE CELLPADDING=5>

WIDTH Width of TABLE <TABLE WIDTH=75%>

Page 14: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

ATTRIBUTE TAG Description Example

ALIGN Align images or text in cells

<TD ALIGN=“left”>

VALIGN Align contents o cell vertically

<TD VALIGN=“Top”>

NOWRAP Don’t let text wrap <TD NOWRAP>

COLSPAN Stretch the cell across many columns

<TD COLSPAN=“3”>

ROWSPAN Stretch the cell across many rows.

<TD ROWSPAN=“2”>

WIDTH Width of cell <TD WIDTH=“75%”>

BGCOLOR Color of cell <TD BGCOLOR=“RED”>

Page 15: Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag

TABLES

• Organize information into little boxes.