Bad Html Habits

Using HTML is the quite easy because of ethworkarounds used by Web builders to indent
structure of this language. But even after that theparagraphs or whole pages. The problem is that
best HTML programmers can commit mistakes insoftware may interpret and deliver information a
the coding if they develop some bad HTML habits.certain way because of the tag. So, a
In this article we will discuss some of the badtext-to-voice reader might interpret the block
HTML habits which keep even some of the bestquote information as a quote and read it
HTML jockeys from gaining proper accessibility.accordingly when, in fact, you were just trying to
Let's discuss and try to understand some of theindent a paragraph. Again, style sheets offer the
bad HTML habits developed by many of us.best solution; they allow you to separate the
In the due course of time some of us may haveformatting and visual appearance of the material
been using the style sheets to the extent tofrom the structure of the page.
alleviate the dependence on FONT formattingBad HTML Habit#4
tags, but as you make your way through theAnother culprit is the use of absolute text
HTML world, you will definitely find out that this isformatting tags instead of relative ones. and , for
some code that may work but not to the exactexample, may render the same in many
specifications.browsers, but they do not mean the same thing.
Bad HTML Habit #1The tag, as well as the tag, was designed to
The first bad HTML habit is the improper use ofindicate structural emphasis that could take the
headings. The user agents may be able to build aform of either a visual change (font, size, and
table of contents by reading the headings on astyle) or an audible change (inflection, volume, and
Web page. So, using H1 through H6 tags topitch).
structure your information is important, and usingIf you want to improve then don't ignore these
these tags simply to size text can causetags
problems.You need to provide alternative content if you're
Bad HTML Habit#2creating pages with certain elements:
Transparent images have become a de facto* When you use SCRIPT, provide NOSCRIPT
workaround by which many Web builders eludeinformation.
HTML's layout limitations. These images, however,* When using FRAMES, provide NOFRAMES
can make it difficult for user agents to distinguishinformation.
between real content and ancillary images such as* When using EMBED, provide NOEMBED
spacers. Instead, use style sheets to controlinformation.
margins, spacing, and other page elements. (CSS2* When using APPLETS, use ALT text.
also offers new styles that address white space.)* When using FRAMESET, make sure to use
Bad HTML Habit #3TITLE.
Another no-no is using block quotes or list* Provide a text-only alternative to audio or video.
containers to control indention. Both are common