92.2k views
5 votes
Saroj, a student of Class X, wants to represent a table in a webpage but is unaware of the table tags. What are the roles of , , and tags?

A. : Represents table data, : Represents table header, : Represents table rows.
B. : Represents table rows, : Represents table data, : Represents table header.
C. : Represents table header, : Represents table rows, : Represents table data.
D. : Represents table data, : Represents table rows, : Represents table header.

1 Answer

1 vote

Final answer:

The correct roles of the HTML tags for tables are: for table rows, for table data, and for table headers commonly contain bold, centered text to indicate the headings for columns or rows..

Step-by-step explanation:

The question is asking about the roles of different HTML tags used for creating tables in webpages.The correct answer is C. <th>: Represents table header, <tr>: Represents table rows, <td>: Represents table data.The <th> tag is used to define the header cells in a table. It should be used inside the <tr> tag.

The <tr> tag is used to define each row in a table. It should contain one or more <td> elements, which represent the cells of the table. The correct answer is B: <tr> represents table rows, <td> represents table data, and <th> represents table header. When coding in HTML, <tr> is used to define a row in the table, <td> defines the standard cells in the table that contain data or content, and <th> is used to define header cells, which commonly contain bold, centered text to indicate the headings for columns or rows.

User Michael Golos
by
7.5k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.