HTML Tags Practice Test

Question: 1 / 400

What tag is used to specify a header cell in a table?

The <header> tag

The <th> tag

The <th> tag is specifically designed to define header cells in an HTML table. When used within a <table>, <tr>, or <thead> tag, the <th> tag signifies that the content is a heading for a group of table data represented by the <td> tags. Header cells are typically rendered in bold and centered by default, which helps distinguish them from regular data cells. This semantic markup is important for accessibility purposes, as screen readers and other assistive technologies use the information provided by the <th> tag to convey the structure and meaning of the table to users, ensuring a better understanding of the content.

The other tags listed serve different functions; for example, the <header> tag is used to define introductory content in sections or articles and is not specific to tables. The <cell> tag is not a valid HTML tag and does not serve any purpose within HTML specifications. The <h1> tag, while it is used for defining headings, is not related to table headers and is typically used for the main title of a page or an important section.

Get further explanation with Examzify DeepDiveBeta

The <cell> tag

The <h1> tag

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy