HTML- Unit - 2 Table and Hyperlink
HTML- Unit - 2 Table and Hyperlink
1. Table Heading: An HTML table heading can be defined using the <TH> tag. The
top row represents the heading of the table, but the <TH> element can be used in
any row in a table.
2. Table Border: The border option is used to set the width of border around the
table. If a border attribute is not specified, the table will be displayed without the
border.
3. Table Background: The background option is used to set background color for
the table. By default, the table background color is white. The color can be set by
using Bgcolor and Bodybgcolor.
4. Table Caption: The caption tag serves as a title or explanation for the table. This
tag is placed just after the <TABLE> tag and is optional to use it in a table.
6. Anchor Tag: A hyperlink has an anchor that is located within the document.
Through the anchor the hyperlink can be followed.
i. Input tag: one of the most important tag which allows you to create a field to
enter data of your choice
ii. Check Box: it is used to provide different square boxes when you have more
than one option to be marked
iii. Radio buttons: this attribute is used to only one in the given options by entering
the dot into the circle
v. Submit button: it is used to create a button where you need to submit the form
It represents the distance between the It defines the weight of the border with
cell borders in a cell
2. Colspan and Rowspan
Colspan Rowspan
Colspan it merges two or more columns Rowspan merges two or more rows
into a single column into a single row
<TR> <TD>
It builds the row in the table It creates a sense and add data into it
********************************