【HTML🔰】VSCodeでtableタグのERRORが消えない!~アクセシブルな名前が必要です~

ホームページ制作にあたり、自分自身が躓いたポイントをメモとして残しています。

現象

          <table>
            <tr>
              <th></th>
              <td></td>
            </tr>
          </table>

Visulal studio Codeで赤い波線が出る。

対策

tableにaria-label=””を設定する。

          <table aria-label="">
            <tr>
              <th></th>
              <td></td>
            </tr>
          </table>

これで解決。

コメント