Which of the following are table tags?
A. table, thead, tr, td
B. colspan, table, tr
C. table, tt, tr, td
D. none of the mentioned
Answer: Option A
Solution (By Examveda Team)
Table tags in HTML are used to create and structure tables. They include various tags to define the table structure, rows, headers, and data cells.Option A: table, thead, tr, td - This is the correct answer. These tags are all used in defining a table in HTML:
table - Defines the table itself.
thead - Defines the header section of the table.
tr - Defines a table row.
td - Defines a table data cell.
Option B: colspan, table, tr - This is incorrect. While table and tr are table tags, colspan is an attribute, not a tag.
Option C: table, tt, tr, td - This is incorrect. While table, tr, and td are table tags, tt is not a table tag; it represents teletype text.
Option D: none of the mentioned - This is incorrect because Option A correctly lists table tags.
Give an example