Use the <caption> element for the table title
A caption is similar to a heading for a table that screen readers read out. It helps users identify a table, understand what it's about and decide if they want to read it. While every table may not need a caption, they are generally beneficial. Use the <caption>
element right after the opening <table>
tag to associate the caption with the respective table.
For more complex tables, consider adding a summary for assistive technology users, including the information stating how the data in the table is organized. You can read about the different ways to add a summary on The World Wide Web Consortium website.[1]