Tags for this article: html help, HTML TIDY, messy html code
When you are editing HTML, it is very easy to make certain mistakes. Now there is a programme which works automatically and turns the sloppy editing into a very nicely layed out mark up. The programme is known as HTML TIDY and was developed by Dave Raggett. The HTML TIDY is a free of cost utility and it performs the very important task of cleaning the untidy editing. This programme works perfectly with a hard to read mark up which is generated by specialised HTML editors and various other conversion tools. This actually tells you which place you need to pay more attention.
TIDY can fix a variety of problems and will also provide certain things which you need to work upon. Every time an item is found it is actually listed with a specific line number and a column which makes the problem visible to you. The best thing about the programme is that it won’t change the format into a cleaned up version untill it recognises the problem. The mistakes which TIDY cannot understand it logs it as “errors”. It is a very important programme and everyone learning HTML should understand HTML TIDY as well. The programme is totally free of cost and understanding it is pretty easy.
Another benefit of using TIDY is that you can choose a specific style that you want. TIDY cannot preserve the original layout because the implementation comes in the way. It starts working by building the clean parse tree from a source file. Then this programme prints the parse tree and we can use the current layout options only. If it tries to preserve an original layout then it interacts very badly with the repair operations that were needed in order to build a clean parse tree. This is a very useful option of TIDY and is very easy to understand as well.
TIDY also offers a choice of various character encodings as the full set of HTML 4.0 entities are properly defined. Various other encodings such as US ASCII and UTF ISO Latin-1 are also supported by it. The characters which are not supported by TIDY are selected as numeric character entities. The main drawback is that TIDY does not recognise the use of HTML meta elements in order to specify the character coding. The clean option in TIDY will be replaced by style properties and some rules which use CSS that actually makes the mark up easier than normal.
This programming is still evolving and is about to get smarter as time progresses. There are certain pages which actually rely on some sought of presentation effects. You should use the empty paragraph elements for adding a vertical white space. You should actually use style sheets in such matters. TIDY will not discard any sort of paragraph which contains a non breaking space. It also offers advice on certain accessibility problems for those people who are using non graphical browsers. It is a very important programme and understanding it is very easy as well. You can find all the information about TIDY online.