Skip to main content

title-require

<title> must be present in <head> tag.

Level: error

Config value

  1. true: enable rule
  2. false: disable rule

The following pattern are not considered violations:

<html><head><title>test</title></head></html>

The following pattern is considered violation:

<html><head></head></html>
<html><head><title></title></head></html>
<html><title></title><head></head></html>