Developers seldom have control over the display of web sites. Therefore, to avoid distortion of layout, certain norms should be followed. Such norms assure presentation perfect production of web sites. Some of those standards are discussed herewith.
Validation of HTML Document
- W3C provides online HTML validators. All HTML documents should be checked with that.
- There are different levels of validation. Some of them are HTML level 2.0 and 3.2 (Wilbur). All specifications are available with W3C. All documents are recommended for validating with respect to the W3C norms.
- Proper declaration of document type (DOCTYPE) is essential. If DTD is not standard or widely known then DTD needs to refer itself in form of comment within the document.
- The result of validation should be error free.
- If errors come out of validation attempt, developer needs to take note of them. The note can be delivered to the HTML document separately. Prior to this action, these notes need to be referenced at the source by a comment. Such comment should justify the invalid construct. The comment should also include how the erroneous code tends to affect text-mode browsers in particular. A reference to an already existing analysis holds sufficient for an established construct which is invalid.
Headers
- Giving appropriate title to all HTML documents is essential.
- Other possible header elements in HTML documents can be Style-sheets, Client-side scripts, relational links and META elements.
- For documents being “front page” or any major entry point for a system the standard recommendations are the following:
- For web indexers’ assistance keywords and description should be put within Meta elements.
- “REV=MADE” link demonstrating the developer or maintainer of a document is required to be included.
Use of Tags
- Use of <blink> is not recommended.
- <FONT> should not substitute HTML headers <H1> – <H6>.
- Use of emphasis tags, viz, <FONT>, <B> or <STRONG> is also not recommended for use further in extended passages. These are correct to words and phrases.
- In an HTML code <H1>…</H1> can be used only once.
Proprietary Markup
General standards: particular cases are dealt with separately below.
- In an HTML document with respect the existing validation standards; developers can use proprietary tags.
- Avoiding use of undefined entities is not recommended at all.
Increasing websites and web usage in the modern world indicate the benefits of software engineering towards web development. Keep up the good work. All the best.
Nice brief and this fill someone in on helped me alot in my college assignement. Thanks you on your information.