Computer Science, asked by mandarokar, 1 year ago

what is the format of making table in html​

Answers

Answered by vpalak400143
5

Answer:

Explanation:

STEP 1

Open a text-editing program. You'll typically use Notepad on Windows and TextEdit on Mac. To find these programs:

  • Windows - Open Start Image titled Windowsstart.png , type notepad into Start, and click Notepad at the top of the window.
  • Mac - Open Spotlight Image titled Macspotlight.png , type in textedit, and click TextEdit below the Spotlight search field.

Step 2

Type in <table> and press ↵ Enter. The <table> tag indicates the start of a table, and pressing ↵ Enter prompts your text editor to start a new line.

  • When using HTML, you always have to press ↵ Enter after creating a line of code to move onto the next line.

Step  3

Type in <tr> and press ↵ Enter. This command indicates that you'll be creating a specific element of the table.

step  4

Add a column to your table. Type in <th> to indicate a column, type in the label for the column, type in </th> to close the column, and press ↵ Enter.

  • For example: to create a table column labeled "Number of Dogs", you would type <th>Number of Dogs</th> into your text editor.

step 5

Add more columns. Depending on how many columns you want your table to have, this step will vary. Once you've added all of the columns that you want to use, proceed to the next step.

  • Columns are created from left to right.

step 6

Type in </tr> and press ↵ Enter. This command indicates that all of the table's columns have been created and closes that section of the table's code.

step 7

Type in <tr> again, then press ↵ Enter. You'll now add your rows to your table.

step 8

Add a cell to your table. Type in <td> to indicate a piece of information below the first column, type in the information, type in </td> to close the cell, and press ↵ Enter.

  • For example: to create a cell with the number "23" in it, you would type <td>23</td> into your text editor.

step 9

Add more cells to your table. The number of cells in a row should correlate to the number of columns; for example, if you have three columns, you should have three cells in a row. Once you've created an entire row, you can proceed.

step 10

Close the current row. Type in </tr> and press ↵ Enter to close the row. At this point, you can open another row by typing in <tr> and pressing ↵ Enter, adding individual cells, and then closing the row.

step 11

Close your table. Below the final line of the table, type in </table>. This indicates the end of the table.

step 12

Review your table. Your table should look something like this:[1]

  • <table>
  • <tr>
  • <th>Day</th>
  • <th>Month</th>
  • <th>Year</th>
  • </tr>
  • <tr>
  • <td>4</td>
  • <td>March</td>
  • <td>1990</td>
  • </tr>
  • <tr>
  • <td>27</td>
  • <td>July</td>
  • <td>1993</td>
  • </tr>
  • </table>

step  13

Save your work. Press Ctrl+S (Windows) or ⌘ Command+S (Mac) to save your document, then enter a name for the document and click Save when prompted.

Answered by TheMoonlìghtPhoenix
3

Explanation:

ANSWER:-

<HTML>

<HEAD>

<TITLE> Creating Tables </TITLE>

</HEAD>

<BODY>

<CENTER> <TABLE>

<TR>

<TH>Roll no</TH> <TH>Name</TH>

<TH>Age</TH> </TRS

<TR>

<TD>101</TD> <TD>A</TD> <TD>12</TD>

</TR>

<TR>

<TD>102</TD> <TD>B</TD>

</TR>

<TD>13</TD>

<TR> <TD>103</TD> <TD>C</TD> <TD>14</TD>

</TR> </TABLE>

</CENTER>

</BODY> </HTML>

  • This is the basic format of making table in HTML.
  • TD Full form Table Data
  • TR is table row.

.

Similar questions