Skip to content

rule label for input

Hanxing Yang edited this page Jul 10, 2016 · 1 revision

name

label-for-input

description

<input> should be associated with <label>. If found not, it reports.

sample

<!-- Bad -->
<input>

<!-- Good -->
<label for="demo">demo</label>
<input id="demo" name="demo">

<label>test<input></label>

code

  • 044

    <input> associated with <label> found.

config

  • true

    Do check / format.

  • false

    Do not check / format.

format support

No.