asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > THEAD Element

<thead> Element


Repesents the header in a table element.HTML 4, 4.01, 5

HTML Syntax

Remarks

The <tbody> element encapsulates a table row that comprises the header of a parent <table> element.

Its content typically represent column names or headings.

The <tbody> is exposed for all tables, even if the table did not explicitly define a thead element.

NOTE: This element can only be used within a <table> element.

A <thead> element’s end tag can be omitted if the <thead> element is immediately followed by a <tbody> or <tfoot> element.

Attributes

The <thead> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

This example shows the relationship between the thead, tbody and tfoot elements, and how using CSS can illustrate their roles in the table model.

Sample Code

InvoiceProduct NameQuantityUnit PriceDiscountNet Amount
10643Rössle Sauerkraut15$45.600.25$513.00
10643Chartreuse verte21$18.000.25$283.50
10643Spegesild2$12.000.25$18.00
Totals $814.50

External References

See Also

TABLE   TBODY   TD   TFOOT   TH   TR   Using Tables


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note