We insert the dirty html into the "Code", or any buffer content into the "HTML", select the parameters of the cleaner's behavior, and get the result.
Why clean your site from html junk?
During long-term work with the site through its optimization, garbage accumulates in the site system, which should be periodically cleaned. This method is just intended for these purposes, as noted in this topic. This affects not only the speed of loading pages, but also the efficiency of the server of the site itself.
Cleaning your HTML code periodically is very important. By removing unnecessary information, you significantly speed up the work of your site. The browser will read code and pages faster - it will load faster.
A great way to find errors in HTML is to open the page's source in Firefox. He, like Word, looks for "spelling errors" and be sure to point them out to you.
Indeed, the most reliable way is to entrust this business to a professional.
If you have no desire to spend money, you can clean the code yourself if you understand a little about it. For example, you can strip style descriptions from HTML and send them to CSS by creating a new class.
If there are a lot of imported elements, it is better to put them directly into the code or CSS, if possible, because loading information from other sources also slows down the browser's processing of the code.
Check if there are any extra spaces and paragraphs, many of them are made for the convenience of the webmaster, but after the completion of writing the code, they can be tidied up.
There is also an option to use automatic cleaners like this one.
SEO optimization of html-code
The shorter the loading time of the web page, the faster the user begins to interact with the site. The likelihood that he will not close the page without waiting for the download increases. It is this factor that can affect the ranking of an optimized web page. Below are the optimization options.
If there are a lot of pictures on the page, then they can be loaded after loading the page.
If the page has a lot of tables with numerical data, they can also be loaded after loading the page.