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

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>
主站蜘蛛池模板: 兖州市| 特克斯县| 左云县| 红原县| 阳东县| 龙川县| 永新县| 夏津县| 新野县| 太保市| 云霄县| 渭源县| 万年县| 高邑县| 阿城市| 龙江县| 珠海市| 三台县| 仪陇县| 清河县| 大田县| 法库县| 望江县| 余庆县| 衡东县| 达尔| 三门峡市| 综艺| 隆昌县| 民权县| 麻城市| 枣阳市| 兴山县| 东丽区| 宾川县| 新邵县| 巴林左旗| 交口县| 郁南县| 育儿| 萍乡市|