Validation documentation
is intended not only to ensure that the code complies with the HTML, to eliminate these all errors and
comments on the document. Meanwhile, the formation of a specific culture coding
can significantly reduce or even get rid of viable faults. Like a experience
is form of learning of
specifications and typical blunders developers, which should be avoided.
Code errors typically occur for the following
reasons:
·
the site is not specified <! DOCTYPE>;
·
typo (misspelled tag or attribute);
·
not a required attribute of the tag;
·
used tag or attribute that
is not included in the specification;
·
incorrect embedding tags.
Further analyze these errors in detail
Empty <! DOCTYPE>
Element <! DOCTYPE> is located in the first
line of code of the document and tells
the browser how to interpret the code
and display this web page.
The difference between a page with <! DOCTYPE> and
without it can be very significant,
to the same validator first checks for the presence of this element in the code.
Errata
Obviously, the easiest to correct typographical error occurs because, when allowed misspelling required
tag. After validating the type of error is issued and the line number in the code where it is, so it remains only to change to the
correct value.
No comments:
Post a Comment