|
5 | 5 | <div id="options">
|
6 | 6 | <div class="row">
|
7 | 7 | <div class="col-12 col-sm-4">
|
8 |
| - <h3>Standard</h3> |
| 8 | + <h3>HTML Structure</h3> |
| 9 | + <ul> |
| 10 | + <li><label class="checkbox" title="Doctype must be first."><input type="checkbox" class="form-check-input" id="doctype-first"> doctype-first</label></li> |
| 11 | + <li><label class="checkbox" title="Doctype must be html5."><input type="checkbox" class="form-check-input" id="doctype-html5"> doctype-html5</label></li> |
| 12 | + <li><label class="checkbox" title="<title> must be present in <head> tag.."><input type="checkbox" class="form-check-input" id="title-require"> title-require</label></li> |
| 13 | + <li><label class="checkbox" title="<main> element must be present in the document."><input type="checkbox" class="form-check-input" id="main-require"> main-require</label></li> |
| 14 | + <li><label class="checkbox" title="H1 element must be present in the document."><input type="checkbox" class="form-check-input" id="h1-require"> h1-require</label></li> |
| 15 | + <li><label class="checkbox" title="Tag must be paired."><input type="checkbox" class="form-check-input" id="tag-pair"> tag-pair</label></li> |
| 16 | + <li><label class="checkbox" title="The empty tag must closed by self."><input type="checkbox" class="form-check-input" id="tag-self-close"> tag-self-close</label></li> |
| 17 | + <li><label class="checkbox" title="Obsolete tags should not be used."><input type="checkbox" class="form-check-input" id="tag-no-obsolete"> tag-no-obsolete</label></li> |
| 18 | + </ul> |
| 19 | + </div> |
| 20 | + <div class="col-12 col-sm-4"> |
| 21 | + <h3>Tag & Attribute Format</h3> |
9 | 22 | <ul>
|
10 | 23 | <li><label class="checkbox" title="Tagname must be lowercase."><input type="checkbox" class="form-check-input" id="tagname-lowercase"> tagname-lowercase</label></li>
|
11 | 24 | <li><label class="checkbox" title="Tag names should not contain special characters."><input type="checkbox" class="form-check-input" id="tagname-specialchars"> tagname-specialchars</label></li>
|
12 | 25 | <li><label class="checkbox" title="Attribute name must be lowercase."><input type="checkbox" class="form-check-input" id="attr-lowercase"> attr-lowercase</label></li>
|
13 | 26 | <li><label class="checkbox" title="Attribute value must closed by double quotes."><input type="checkbox" class="form-check-input" id="attr-value-double-quotes"> attr-value-double-quotes</label></li>
|
14 | 27 | <li><label class="checkbox" title="Attribute must set value."><input type="checkbox" class="form-check-input" id="attr-value-not-empty"> attr-value-not-empty</label></li>
|
15 | 28 | <li><label class="checkbox" title="Attribute name can not occur more than once."><input type="checkbox" class="form-check-input" id="attr-no-duplication"> attr-no-duplication</label></li>
|
16 |
| - <li><label class="checkbox" title="Attribute should not have unnecessary whitespace."><input type="checkbox" class="form-check-input" id="attr-no-unnecessary-whitespace"> attr-no-unnecessary-whitespace</label></li> |
17 |
| - <li><label class="checkbox" title="Attributes should be sorted."><input type="checkbox" class="form-check-input" id="attr-sorted"> attr-sorted</label></li> |
18 | 29 | <li><label class="checkbox" title="Attribute values should not be duplicated."><input type="checkbox" class="form-check-input" id="attr-value-no-duplication"> attr-value-no-duplication</label></li>
|
| 30 | + <li><label class="checkbox" title="Attributes should be sorted."><input type="checkbox" class="form-check-input" id="attr-sorted"> attr-sorted</label></li> |
| 31 | + <li><label class="checkbox" title="Attribute should not have unnecessary whitespace."><input type="checkbox" class="form-check-input" id="attr-no-unnecessary-whitespace"> attr-no-unnecessary-whitespace</label></li> |
19 | 32 | <li><label class="checkbox" title="Attribute whitespace rules."><input type="checkbox" class="form-check-input" id="attr-whitespace"> attr-whitespace</label></li>
|
20 |
| - <li><label class="checkbox" title="Doctype must be first."><input type="checkbox" class="form-check-input" id="doctype-first"> doctype-first</label></li> |
21 |
| - <li><label class="checkbox" title="Tag must be paired."><input type="checkbox" class="form-check-input" id="tag-pair"> tag-pair</label></li> |
22 |
| - <li><label class="checkbox" title="The empty tag must closed by self."><input type="checkbox" class="form-check-input" id="tag-self-close"> tag-self-close</label></li> |
23 |
| - <li><label class="checkbox" title="Obsolete tags should not be used."><input type="checkbox" class="form-check-input" id="tag-no-obsolete"> tag-no-obsolete</label></li> |
24 |
| - <li><label class="checkbox" title="Special characters must be escaped."><input type="checkbox" class="form-check-input" id="spec-char-escape"> spec-char-escape</label></li> |
25 |
| - <li><label class="checkbox" title="Id must be unique."><input type="checkbox" class="form-check-input" id="id-unique"> id-unique</label></li> |
26 |
| - <li><label class="checkbox" title="Src of img(script,link) must set value."><input type="checkbox" class="form-check-input" id="src-not-empty"> src-not-empty</label></li> |
27 |
| - <li><label class="checkbox" title="<title> must be present in <head> tag.."><input type="checkbox" class="form-check-input" id="title-require"> title-require</label></li> |
28 |
| - <li><label class="checkbox" title="<main> element must be present in the document."><input type="checkbox" class="form-check-input" id="main-require"> main-require</label></li> |
| 33 | + <li><label class="checkbox" title="Attribute value cant not use unsafe chars."><input type="checkbox" class="form-check-input" id="attr-unsafe-chars"> attr-unsafe-chars</label></li> |
| 34 | + </ul> |
| 35 | + </div> |
| 36 | + <div class="col-12 col-sm-4"> |
| 37 | + <h3>Meta & Head</h3> |
| 38 | + <ul> |
29 | 39 | <li><label class="checkbox" title="Meta charset must be present in <head> tag."><input type="checkbox" class="form-check-input" id="meta-charset-require"> meta-charset-require</label></li>
|
30 | 40 | <li><label class="checkbox" title="Meta description must be present in <head> tag."><input type="checkbox" class="form-check-input" id="meta-description-require"> meta-description-require</label></li>
|
31 | 41 | <li><label class="checkbox" title="Meta viewport must be present in <head> tag."><input type="checkbox" class="form-check-input" id="meta-viewport-require"> meta-viewport-require</label></li>
|
| 42 | + <li><label class="checkbox" title="HTML lang attribute must be present."><input type="checkbox" class="form-check-input" id="html-lang-require"> html-lang-require</label></li> |
| 43 | + <li><label class="checkbox" title="The script tag can not be used in head."><input type="checkbox" class="form-check-input" id="head-script-disabled"> head-script-disabled</label></li> |
32 | 44 | </ul>
|
33 | 45 | </div>
|
34 | 46 | <div class="col-12 col-sm-4">
|
35 |
| - <h3>Performance</h3> |
| 47 | + <h3>Content & Media</h3> |
36 | 48 | <ul>
|
37 |
| - <li><label class="checkbox" title="The script tag can not be used in head."><input type="checkbox" class="form-check-input" id="head-script-disabled"> head-script-disabled</label></li> |
38 |
| - <li><label class="checkbox" title="Script tags should be disabled."><input type="checkbox" class="form-check-input" id="script-disabled"> script-disabled</label></li> |
| 49 | + <li><label class="checkbox" title="Src of img(script,link) must set value."><input type="checkbox" class="form-check-input" id="src-not-empty"> src-not-empty</label></li> |
| 50 | + <li><label class="checkbox" title="Alt of img tag must be set value."><input type="checkbox" class="form-check-input" id="alt-require"> alt-require</label></li> |
| 51 | + <li><label class="checkbox" title="Special characters must be escaped."><input type="checkbox" class="form-check-input" id="spec-char-escape"> spec-char-escape</label></li> |
| 52 | + <li> |
| 53 | + <label class="checkbox" title="Href must be absolute or relative."><input type="checkbox" class="form-check-input" id="href-abs-or-rel"> href-abs-or-rel</label> |
| 54 | + <div id="href-abs-or-rel_valuearea"><select id="href-abs-or-rel_value" class="span7 form-select form-select-sm ms-4" style="width:fit-content"><option value="abs">abs</option><option value="rel">rel</option></select></div> |
| 55 | + </li> |
39 | 56 | </ul>
|
40 | 57 | </div>
|
41 | 58 | <div class="col-12 col-sm-4">
|
42 |
| - <h3>Accessibility</h3> |
| 59 | + <h3>Forms & Interactive</h3> |
43 | 60 | <ul>
|
44 |
| - <li><label class="checkbox" title="Alt of img tag must be set value."><input type="checkbox" class="form-check-input" id="alt-require"> alt-require</label></li> |
45 |
| - <li><label class="checkbox" title="HTML lang attribute must be present."><input type="checkbox" class="form-check-input" id="html-lang-require"> html-lang-require</label></li> |
46 |
| - <li><label class="checkbox" title="H1 element must be present in the document."><input type="checkbox" class="form-check-input" id="h1-require"> h1-require</label></li> |
47 | 61 | <li><label class="checkbox" title="Button must have type attribute."><input type="checkbox" class="form-check-input" id="button-type-require"> button-type-require</label></li>
|
48 | 62 | <li><label class="checkbox" title="Input must have associated label."><input type="checkbox" class="form-check-input" id="input-requires-label"> input-requires-label</label></li>
|
49 | 63 | </ul>
|
50 | 64 | </div>
|
51 | 65 | <div class="col-12 col-sm-4">
|
52 |
| - <h3>Specification</h3> |
| 66 | + <h3>Identifiers & Classes</h3> |
53 | 67 | <ul>
|
54 |
| - <li><label class="checkbox" title="Doctype must be html5."><input type="checkbox" class="form-check-input" id="doctype-html5"> doctype-html5</label></li> |
| 68 | + <li><label class="checkbox" title="Id must be unique."><input type="checkbox" class="form-check-input" id="id-unique"> id-unique</label></li> |
55 | 69 | <li>
|
56 | 70 | <label class="checkbox" title="Id and class value must meet some rules: underline, dash, hump."><input type="checkbox" class="form-check-input" id="id-class-value"> id-class-value</label>
|
57 | 71 | <div id="id-class-value_valuearea"><select id="id-class-value_value" class="span7 form-select form-select-sm ms-4" style="width:fit-content"><option value="underline">underline</option><option value="dash">dash</option><option value="hump">hump</option></select></div>
|
58 | 72 | </li>
|
| 73 | + <li><label class="checkbox" title="Id and class can not use ad keyword, it will blocked by adblock software."><input type="checkbox" class="form-check-input" id="id-class-ad-disabled"> id-class-ad-disabled</label></li> |
| 74 | + </ul> |
| 75 | + </div> |
| 76 | + <div class="col-12 col-sm-4"> |
| 77 | + <h3>Code Quality</h3> |
| 78 | + <ul> |
59 | 79 | <li><label class="checkbox" title="Style tag can not be use."><input type="checkbox" class="form-check-input" id="style-disabled"> style-disabled</label></li>
|
60 | 80 | <li><label class="checkbox" title="Inline style cannot be use."><input type="checkbox" class="form-check-input" id="inline-style-disabled"> inline-style-disabled</label></li>
|
61 | 81 | <li><label class="checkbox" title="Inline script cannot be use."><input type="checkbox" class="form-check-input" id="inline-script-disabled"> inline-script-disabled</label></li>
|
| 82 | + <li><label class="checkbox" title="Script tags should be disabled."><input type="checkbox" class="form-check-input" id="script-disabled"> script-disabled</label></li> |
62 | 83 | <li>
|
63 | 84 | <label class="checkbox" title="Spaces and tabs can not mixed in front of line."><input type="checkbox" class="form-check-input" id="space-tab-mixed-disabled"> space-tab-mixed-disabled</label>
|
64 | 85 | <div id="space-tab-mixed-disabled_valuearea"><select id="space-tab-mixed-disabled_value" class="span7 form-select form-select-sm ms-4" style="width:fit-content"><option value="true">true</option><option value="space">space</option><option value="tab">tab</option></select></div>
|
65 | 86 | </li>
|
66 |
| - <li><label class="checkbox" title="Id and class can not use ad keyword, it will blocked by adblock software."><input type="checkbox" class="form-check-input" id="id-class-ad-disabled"> id-class-ad-disabled</label></li> |
67 |
| - <li> |
68 |
| - <label class="checkbox" title="Href must be absolute or relative."><input type="checkbox" class="form-check-input" id="href-abs-or-rel"> href-abs-or-rel</label> |
69 |
| - <div id="href-abs-or-rel_valuearea"><select id="href-abs-or-rel_value" class="span7 form-select form-select-sm ms-4" style="width:fit-content"><option value="abs">abs</option><option value="rel">rel</option></select></div> |
70 |
| - </li> |
71 |
| - <li><label class="checkbox" title="Attribute value cant not use unsafe chars."><input type="checkbox" class="form-check-input" id="attr-unsafe-chars"> attr-unsafe-chars</label></li> |
72 | 87 | </ul>
|
73 | 88 | </div>
|
74 | 89 | </div>
|
|
0 commit comments