Any tips on writing good and clean HTML code

Status
Not open for further replies.
6 comments
My tip: do not use deprecated tags like <center> or <font>, etc... It's surprising how often they are still used, I see people even here on WJ suggesting others to use them.
 
Depends on how you define "clean" ?

Well people think that "clean" HTML codes are the ones which pass through a validation test.

Code as you normally do and then just use this tool to check all your errors and fix them ;)

But if you think "clean" codes means "codes written with proper alignment & indentation" then use this tool http://tools.arantius.com/tabifier as what 100c53jm suggested.
 
He should code in HTML properly.
Code alignment and indentation isn't done to make the code look pretty, its purpose is to organize everything, so you can find what you're looking for faster. It makes no sense to take advantage of it AFTER you've finished lol

Those tools should be used just to check if you messed up, don't make him create bad habits - specially when the websites you code have +100 validation errors.

The url Kw3rLn shared with you is really useful and you should read it, in my opinion.
 
Last edited:
Status
Not open for further replies.
Back
Top