
org.sonar.l10n.web.rules.Web.PageWithoutTitleCheck.html Maven / Gradle / Ivy
The newest version!
Why is this an issue?
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 - 2025 Weber Informatics LLC | Privacy Policy