warningをなくしたい

実現したいこと

HTMLの構文チェッカを使った際に表示されるwarning表示を修正したい

前提

当方HTML初心者で、VSCodeでHTMLの練習をしております。
動作等は問題ないのですが、構文チェックを行った際にwarningが表示されます。
こちら表示がなくなるように修正したいのですが、調べてみてもそれらしき情報を見つけられず行き詰っております。
何方かご教示いただけると幸いです。

発生している問題・エラーメッセージ

Using Direct Input mode: UTF-8 character encoding assumed

Unlike the “by URI” and “by File Upload” modes, the “Direct Input” mode of the validator provides validated content in the form of characters pasted or typed in the validator's form field. This will automatically make the data UTF-8, and therefore the validator does not need to determine the character encoding of your document, and will ignore any charset information specified.

If you notice a discrepancy in detected character encoding between the “Direct Input” mode and other validator modes, this is likely to be the reason. It is neither a bug in the validator, nor in your document.

該当のソースコード

<style type="text/css"> .className{ width: 120px; } .classKana{ width: 120px; } table{ table-layout: fixed; } .tdTitle{ width: 120px; } </style> </head> <body> <form action="complete.php" method="POST"> <input type = "hidden" name = "hdnCodeAdd" value ="<?php echo $strCode?>"> <h1>新規登録</h1> <br> <table> <tr> <td>コード:</td> <td><?php echo $strCode ?></td> </tr> <tr> <td>名:</td> <td><input type="text" class="className" name="txtNameAdd"></td> </tr> <tr> <td>カナ:</td> <td><input type="text" class="classKana" name="txtKanaAdd"></td> </tr> <tr> <td><input type="reset" value="クリア" name="btnClear"> <input type="submit" value="新規登録" name="btnAdd"></td> </tr> </table> </form>

補足情報(FW/ツールのバージョンなど)

VSCode
HTML構文チェック(https://validator.w3.org/)

コメントを投稿

0 コメント