DEV Community

Cover image for HTML tags | tfoot
Carlos Espada
Carlos Espada

Posted on • Edited on

3 1

HTML tags | tfoot

It is used to define the set of rows that make up the footer of a table.

It has no attributes other than global ones, so to define presentation aspects, CSS properties such as background-color, text-align or vertical-align will be used.

Must appear after the <caption>, <colgroup>, <thead>, <tbody> or <tr> elements.

Browsers can use <thead>, <tbody> and <tfoot> to allow scrolling of the body of the table independently of the header and footer. Similarly, when doing CSS for printing and if the table is spread across multiple pages, these elements can allow both the header and footer to appear repeated at the beginning and end of each printed page.

<thead>, <tbody>, and <tfoot> together also serve to provide useful semantic information used when rendering for screen or printer, as well as to improve accessibility.

Has an implicit ARIA role rowgroup.

  • Type: table-footer-group
  • Self-closing: No
  • Semantic value: No

Definition and example | Support

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

If you found this post helpful, please leave a ❤️ or a friendly comment below!

Okay