org.sonar.l10n.web.rules.Web.PageWithoutTitleCheck.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-web-plugin Show documentation
Show all versions of sonar-web-plugin Show documentation
Enables scanning of HTML, and JSP/JSF files.
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>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy