Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-1096

"<title>" should be present in all pages

    XMLWordPrintable

    Details

    • Type: Bug Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Add a <title> tag to this page.
    • Default Severity:
      Major
    • Impact:
      Low
    • Likelihood:
      High
    • Default Quality Profiles:
      Sonar way
    • Legacy Key:
      PageWithoutTitleCheck
    • Covered Languages:
      HTML
    • Remediation Function:
      Constant/Issue
    • Constant Cost:
      5min

      Description

      Titles are important because they are displayed in search engine results as well as the browser's toolbar.

      This rule verifies that the <head> tag contains a <title> one, and the <html> tag a <head> one.

      Noncompliant Code Example

      <html>         <!-- Non-Compliant -->
      
      <body>
      ...
      </body>
      
      </html>
      

      Compliant Solution

      <html>         <!-- Compliant -->
      
      <head>
      <title>Some relevant title</title>
      </head>
      
      <body>
      ...
      </body>
      
      </html>
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            freddy.mallet Freddy Mallet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: