1. Home
  2. SiteLint
  3. Accessibility Rules
  4. empty-title-attribute


Print this article


This rule verifies if there are elements that have an attribute title with an empty value. This includes also whitespaces.


    title attribute should not be empty. This will ensure that the value of title will be processed in a predictable way. As a side effect removing an empty value of title attribute will make the code smaller, which means less data to transfer and faster processing by e.g. the browser.

    Following elements are being skip while evaluating this rule:

    • <img>
    • <html>
    • <head>
    • <title>
    • <body>
    • <link>
    • <meta>
    • <style>
    • <script>
    • <noscript>
    • <iframe>
    • <br>
    • <hr>

    How to fix it

    The rule passes when an element has an attribute title with a non-empty value. This includes also whitespaces.


    Best Practices

    Was this article helpful to you? No Yes

    How can we help?