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

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>
主站蜘蛛池模板: 民权县| 门头沟区| 乐亭县| 塔城市| 全椒县| 遂川县| 巴东县| 尼玛县| 商洛市| 连州市| 冕宁县| 于都县| 寿阳县| 米泉市| 达日县| 义马市| 扎兰屯市| 汶川县| 桐庐县| 蒙自县| 利辛县| 客服| 卢氏县| 兴安县| 仙居县| 达日县| 高雄县| 蒙阴县| 湟源县| 朝阳区| 台中县| 枝江市| 桓台县| 宜兴市| 忻州市| 贵阳市| 得荣县| 崇州市| 祁阳县| 江永县| 无为县|