0% found this document useful (0 votes)
5 views

Homework:: On A Size 2 Sheet of Paper

The document provides information about HTML table tags: <table> defines an HTML table and can have attributes like align, bgcolor, border, width, cellpadding, cellspacing, and frame. <tr> defines a table row, <th> defines a table header cell with bold centered text, and <td> defines a standard table cell with regular left-aligned text. <th> and <td> can have attributes like align, colspan, rowspan, and valign. The document also provides examples of using these tags to structure data in an HTML table.

Uploaded by

mukesh427
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Homework:: On A Size 2 Sheet of Paper

The document provides information about HTML table tags: <table> defines an HTML table and can have attributes like align, bgcolor, border, width, cellpadding, cellspacing, and frame. <tr> defines a table row, <th> defines a table header cell with bold centered text, and <td> defines a standard table cell with regular left-aligned text. <th> and <td> can have attributes like align, colspan, rowspan, and valign. The document also provides examples of using these tags to structure data in an HTML table.

Uploaded by

mukesh427
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 7

HOMEWORK:

On a size 2 sheet of paper:


Define

the <a> tag in HTML Write down its function List down its attributes Explain and write down examples:
to

link to another webpage/website to an area within the webpage

Check-up Quiz (on <a> tag) Summative Hands-On Quiz on Thursday.

HTML: TABLE TAG

<table> Tag
The <table> tag defines an HTML table. A simple HTML table consists of the table element and one or more tr, th and td elements. tr: table row th: table header td: table cell

<table> Attributes
Attribute Values Description align Left, right, Specifies the alignment of center a table according to surrounding text bgcolor RGB Specifies the background #xxxxxx color for a table colorname border pixels Specifies the width of the borders around a table width pixels Specifies the width of a table

<table> Attributes
Attribute Values cellpaddin pixels g Description Specifies the space between the cell wall and the cell content Specifies the space between cells Specifies which parts of the outside borders that should be visible

cellspacin pixels g Void, frame


above, below, hsides, lhs, rhs, vsides, box, border

<th> and <td> Tags


An HTML table has two kinds of cells: Header cells - contains header information
<th>

- text is bold and centered - text is regular and left-aligned.

Standard cells - contains data


<td>

<th> and <td> Attributes


Attribute Values align Left, right, center, justify colspan number Description Aligns the content in a cell

rowspan
valign

number
top, middle,

Sets the number of columns a cell should span Sets the number of rows a cell should span Vertical aligns the content in a cell

You might also like