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

name

charset

description

<meta charset> is recommended and it should be the first element child of <head>. If not found, or found at wrong position, it reports.

sample

<!-- Bad -->
<head>
    <title>standard file</title>
</head>
<head>
    <title>standard file</title>
    <meta charset="UTF-8">
</head>
  
<!-- Good -->
<head>
    <meta charset="UTF-8">
    <title>standard file</title>
</head>

code

  • 006

    <meta charset> not found.

  • 007

    <meta charset> found in wrong position.

config

  • true

    Do check / format.

  • false

    Do not check / format.

format support

Yes.