Computer Science, asked by lakshmikantabanerjee, 1 year ago

What is the table tag in html

Answers

Answered by Sauron
27
☺️Your answer ☺️

Table tag in HTML is used to create a table on a webpage.It arranges the data in rows and columns which makes the data organized and attractive.

table tag : <Table> ......... </Table>

Inside <table> tag each row is defined by <TR> tag. The <TD> tag defines a data cell inside a row.

The following are its attributes:

✔️ALIGN: specifies the alignment of the table with surrounding elements.

✔️ HEIGHT: sets the table height.

✔️WIDTH: sets table width

✔️BGCOLOR: specifies background color for table.

✔️ Background: specifies an image as the background of the table.

✔️Cellspacing: specifies extra space between adjacent cells.

✔️Cellpadding: specifies extra space around the contents of the cell.
Answered by Anonymous
27
TABLE TAG –

The table tag is used for creating a table .

A table is used to arrange the data in the form of row and column. When data is arranged in a table, it looks more organised.

For example–

If your class teacher tells you to create a class list with the provision of Palam which can store marks in different subject then the best way to do the task is to use table.

the process of creating an HTML table is similar to the process that you used to create your web page and any elements that you may have already included in your page, such as links.

Coding HTML tables into your webpage is fairly easy since you need only understand a few basic table codes.

CREATING TABLE IN HTML

<TABLE
ALIGN= "LEFT / RIGHT / CENTER"
BGCOLOUR= "COLOUR"
BORDER= "VALUE"
CELLPADDING= "VALUE"
CELLSPACING= "VALUE"
HEIGT= "HEIGHT"
WIDTH= "WIDTH"
>
........

</TABLE>

the attribute of <table> tag

♦ALIGN

It specify the horizontal placement off the table. This attribute can take one of the following values: LEFT, RIGHT or CENTER.

♦BGCOLOUR

This attribute sets the colour of the background for the table.

♦BORDER

This attribute is used to draw border around the table.

♦HEIGT

The HEIGHT attribute specifies the height of the table.

♦WIDTH

The WIDTH attribute specifies the width of the table.

♦CELLPADDING

The CELLPADDING attribute of the table tag determine the amount of space between the border of a cell and the content inside it.

♦CELLSPACING

The CELLSPACING attribute determine the amount of space between individual cells in a table.

_____________________________

Thanks☺️✌️

Mohitgupta123: hiiii
Similar questions