Skip to content
Hanxing Yang edited this page Jul 9, 2016 · 1 revision

name

html-lang

description

Attribute lang of <html> recommended to be set. If found not set, it reports.

sample

<!-- Bad -->
<html>
  ...
</html>

<!-- Good -->
<html lang="zh-CN">
  ...
</html>

code

  • 010

    Attribute lang of <html> found not set.

config

  • true

    Do check / format.

  • false

    Do not check / format.

format support

Yes.

Tips: lang="zh-CN" is used as default.