I have a WordPress site with several blog posts that have tabular data. This tabular data is important so I've been looking at building a plugin that would build a sitemap for guests to reference but I'm unsure if there is a proper solution to identifying the name or title of the table.
In research I've read and understand that the title
attribute is a global attribute, which means that you can use it on all elements:
<table id="foo" class="bar" title="Hello World">
</table>
and:
The
title
attribute represents advisory information for the element, such as would be appropriate for a tooltip. On a link, this could be the title or a description of the target resource; on an image, it could be the image credit or a description of the image; on a paragraph, it could be a footnote or commentary on the text; on a citation, it could be further information about the source; on interactive content, it could be a label for, or instructions for, use of the element; and so forth. The value is text.
but I'm also aware that name
isn't HTML5 compliant after reading Can we give name to html <table>
? but there is data-name="Hello World"
.
Further research I've looked at:
In regards to SEO, HTML5 compliancy and sitemap development what is the proper way to declare the title or name of a table because I'm having issues finding an answer in any schema regarding tables other than using the title
attribute?