I checked my HTML page against the W3C Validator. This time I had only 25 errors at the start (my first ever page had 86). As before, I found that the best way to use this resource is to correct the first few mistakes and then re-validate. In my first page the 86 errors reduced to just 27 with the correction of one mistake. This is because missing a bracket or punctuation mark used in the code can cause cascading errors down the page - one missed bracket can make anything following wrong as it does not open or close correctly. Slow and cautious seems to be the best way to go.
The errors are all primarily the construction of the code.
- Have you put the correct document declaration at the top? I used the transitional XHTML version.
- I had missed a statement of the font type statement in the "header" ( charset=utf-8). The Validator assumed this but it seemed better to add it.
- I needed to decide a layout on paper first and then decide what needed to be added to the CSS file in the way of formatting (and check my CSS file).
- As I had decided to use the page to write a summary of the tutorials my main errors were sorting out what code needed to be written in directly (tags for italic text) and what code needed to be written in with special character code and "pre" tags so that the computer code was displayed on my page.
In summary, the main thrust of the validator is to correct code errors. These were involved with the display on the page.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment