Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

_______________________________________________________________

Chapter 12-Tables in HTML (notes)


__________________________________________________________________
★ <Table> tag - to create a table
- Provide us with a way to arrange the data in the form of rows and
columns.
● Attributes
➔ Border=”3”
➔ BorderColor=”Blue”
➔ BGcolor=”yellow”
➔ Cellpadding=”5”
➔ Cellspacing=”5”
➔ Align=”Left” / “Right” / ”Center”

● <TR> tag - to define a table row


● Attributes
➔ BorderColor
➔ BGcolor
➔ Height
➔ Align
➔ Valign
➔ Colspan
➔ Rowspan

● <TD>tag - to define a column


_____________________________________________________________________

1. Table<TABLE>- Table Header <TH>, Table Row<TR>, Table


Data<TD>

<HTML> <TR>
<HEAD> <TD>Sanjana</TD>
<TITLE> <TD>Grade 3</TD>
LEARNING HTML TABLES <TD>Ruby</TD>
</TITLE> <TD>French</TD>
</HEAD> </TR>
<TR>
<BODY> <TD>Ajay</TD>
<TD>Grade 3</TD>
<TABLE BORDER=”2”> <TD>Pearl</TD>
<TR> <TD>Tamil</TD>
<TH>NAME</TH> </TR>
<TH>CLASS</TH>
<TH>SECTION</TH> </TABLE>
<TH>II LANG</TH> </BODY>
</TR> </HTML>
<TR> ____________________________
<TD>Anita</TD>
<TD>Grade 5</TD>
<TD>Sapphire</TD>
<TD> Hindi</TD>
</TR>

You might also like