官术网_书友最值得收藏!

Validating HTML code

I've mentioned that it is very important that your HTML tags be coded correctly. This is all well and good you say, but how do I know my HTML has been coded correctly? Well, there are a number of HTML code validators that you can use to check your HTML. The W3C HTML validator (http://validator.w3.org/) shown in the following screenshot can be used to validate HTML code by URI, File Upload, or Direct Input:

Assuming that your HTML code successfully validates you will get a nice screen with a message indicating a successful validation as seen in the following screenshot:

On the other hand, it will identify any problems with a red error message as shown in the following screenshot. Errors are described in detail which makes it easier to correct problems. Often a single error can lead to many other errors so it is not uncommon to see a long list of error items. Don't panic if this is the case. Fixing one error often resolves many others:

To correct the errors in the preceding document you would need to surround the text Hello World with paragraph tags:

<p>Hello World</p>
主站蜘蛛池模板: 安国市| 韶关市| 上林县| 张家口市| 宝清县| 尖扎县| 长武县| 泰宁县| 芦山县| 拉萨市| 洪湖市| 富裕县| 秦安县| 温宿县| 清河县| 萍乡市| 黔东| 延津县| 永登县| 教育| 郑州市| 喀喇沁旗| 莒南县| 安岳县| 日喀则市| 唐山市| 石楼县| 海林市| 军事| 佳木斯市| 旺苍县| 巴中市| 辽阳市| 林口县| 治多县| 安乡县| 永康市| 西乌珠穆沁旗| 婺源县| 永和县| 调兵山市|