Markup Validation Service https://validator.w3.org/
Html Checkerでチェックした時に検出されるエラー・警告について
Error: An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.
「 img要素には、特定の場合を除きalt属性が必要である 」
img要素にalt属性を設定する
Error: The value of the for attribute of the label element must be the ID of a non-hidden form control.
「 label要素のfor属性の値は、非表示でないフォーム入力要素のIDと同じでなければならない 」
labelのfor属性と、対応するinputやtextareaのid属性を同じにする
Error: Element div not allowed as child of element span in this context. (Suppressing further errors from this subtree.)
「 div要素の子要素としてspan要素を用いることは許可されていない 」
span要素の中にdiv属性を含めないようにする
Warning: The type attribute is unnecessary for JavaScript resources.
「 type属性にJavaScriptのリソースは不要である 」
script要素のtype属性を削除する(デフォルトでtype/javascriptになっているため)
Warning: Section lacks heading. Consider using h2–h6 elements to add identifying headings to all sections.
「 セクションに見出しがない。h2-h6要素を使用して全てのセクションに見出しをつけることを検討してください 」
section要素の中に見出し(h2~h6)を一つ以上含める