How to transform incomprehensible HTML code into something nicely formatted and readable.
Sometimes you just have nothing more than the HTML that your browser gives you when you view the page source. And depending on the level of server side programming the parsed HTML code either looks ordered and readable or like a string of random characters. You can try to format it yourself but there are lots of ways to format HTML code automatically. Here are the ones I use:
- Dreamweaver In your menu go to:
Commands > Clean Up HTML. - Visual Studio Select the source code in the editor, right click on the selected code and choose
Format selection. Here’s a nice article from Scott Guthrie that also explains how to configure the source formatting. - HTML Tidy If could probably list a plethora of programs that (also) do formatting, but I’ll only mention HTML Tidy since I occasionally use the online version of it on HTML Tidy Online.