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

name

css-in-head

description

All CSS contents (<link rel="stylesheet"> or <style>) are recommended to be imported in <head>. If found not in <head>, it reports.

sample

<!-- Bad -->
<body>
    <style>
        body{
            color: #333;
        }
    </style>
    <link rel="stylesheet" href="../test.css">
</body>
  
<!-- Good -->
<head>
    <meta charset="UTF-8">
    <title>sample</title>
    <style>
        body{
            color: #333;
        }
    </style>
    <link rel="stylesheet" href="../test.css">
</head>

code

  • 008

    CSS contents found not in <head>.

config

  • true

    Do check / format.

  • false

    Do not check / format.

format support

Yes.

Clone this wiki locally