Computer Science, asked by kjay9109, 4 months ago

DESCRIBE ANY FOUR TAG REQUIRED TO CREATE A TABLE ?

Answers

Answered by tanvi64321
6

Answer:

The basic structure of an HTML table consists of the following tags: Table tags: <TABLE> </TABLE> Row tags: <TR> </TR> Cell tags: <TD> </TD>

Answered by khushboojha36056
1

Answer:

The basic structure of an HTML table consists of the following tags:

  1. Table tags: <TABLE> </TABLE>
  2. Row tags: <TR> </TR>
  3. Cell tags: <TD> </TD>

Constructing an HTML table consists of describing the table between the beginning table tag, <TABLE>, and the ending table table tag, </TABLE>. Between these tags, you then construct each row and each cell in the row. To do this, you would first start the row with the beginning row tag, <TR>, and then build the row by creating each cell with the beginning cell tag, <TD>, adding the data for that cell, and then closing the cell with the ending cell tag, </TD>. When you finish all of the cells for a row, you would then close the row with the ending row tag, </TR>.Then, for each new row, you would repeat the process of beginning the row, building each cell in the row, and closing the row.

The following table is an example of a basic table with three rows and two columns of data.

The WIDTH=n% command sets the width of your table as a percentage of the screen. The letter n designates the percentage that you assign to this command. For example, if you want the width of your table to be one half the width of the screen, you would include the WIDTH="50%" command in the beginning table command.

  1. The CELLPADDING=n command adjusts the vertical dimension of the cells. The letter n designates the numerical value that you assign to this command.
  2. The CELLSPACING=n command sets the space or border around the cells. The letter n designates the numerical value that you assign to this command.
  3. The ALIGN=(LEFT, RIGHT, or CENTER) command will horizontally align the data in a cell. For example, if you wish to place the data in the center of each cell in a row, you would include the ALIGN=CENTER command within the row command.
  4. The VALIGN=(TOP, MIDDLE, or BOTTOM) command will vertically align the data in a cell. For example, if you wish to place the data in the center of each cell in a row, you would include the ALIGN=MIDDLE command within the row command.
Similar questions