Webサイトhttp://www.athometechsolutions.net/index.phpを検証しようとしていますが、問題が発生しています。
W3検証サービスにURLを入力すると、次のエラーが発生します。
Error Line 12, Column 1: character data is not allowed here
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
ただし、コードに問題はありません。そして、それをさらに不可解なものにしているのは、「view-source」コードをコピーしてW3検証サービスに貼り付けると、合格することです。
私はそれがそれ自身で受け継がれることを本当に望んでいます、そして私はそれがなぜ受け継がれないのか理解できません。
インクルードから通常のヘッダーにピースを移動するとエラーメッセージの場所が変わるため、ドキュメントの先頭にある最初のphpインクルードと関係があるように思われます。ただし、正常にロードする必要があるように思われます(PHPから-<head> </ head>データをインクルードやその他のドキュメントとしてロードするのは馬鹿げていますか)。
それで、私は尋ねます、どうすればそれをURLを通して検証させることができますか?
ありがとう!