Answer the question
In order to leave comments, you need to log in
Why do headers have a title attribute?
Hello!
I saw that on one website of a web studio, the title attribute is written in the title tag.
<h1 class="main-title" title="Наши проекты">Наши проекты</h1>
Answer the question
In order to leave comments, you need to log in
I checked it in the w3c validator, it is not considered an error.
Hello! The title attribute, being a generic attribute (belongs to such a class of attributes), cannot, by definition, be the result of a code validation error. And yes - its presence is an option for reading voice devices (applications) in order to provide content for the visually impaired, and also if "driven" - this can be attributed to the category of strengthening the semantic core.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question