I need to be sure that the cell content will be indexed by Google (and other search engines) with the label. In my case I can't put label directly in td tag
html:
<td><a href="#" aria-label="prof. ">Jan Kowalski</a></td>
css:
a:before {
content: attr(aria-label);
}
How this cell will be indexed by google? only 'Jan Kowalski' or maybe 'prof. Jan Kowalski'?
Save this answer. Show activity on this post. At the moment of writing this answer, there's no evidence of search engines (specially Google crawler) paying attention to ARIA attributes for HTML. ARIA attributes are not designed for SEO purposes, but for making HTML documents (or web applications) more accessible.
Using aria attributes allows you to specify the role of an element to web robots. It is also good practice for screen readers and for SEO.
aria-describedby is used to reference longer content that provides a description. If there is no element in the DOM that provides a brief label appropriate for an accessible name for an interactive element, use aria-label to define the accessible name for an interactive element.
There is no evidence of search engines paying any attention to ARIA attributes. They are not meant for such use but for making application-like HTML documents more accessible. In particular, aria-label
associates an “accessible name” for an “object”, which is expected to be interactive, such as a button, and the “accessible name” suggests what the button or other element does.
So it is very unrealistic to expect that search engines extract information from such attributes. They index textual content, though they may additionally index some data in some meta
tags or selected attributes, mainly alt
and title
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With