Hello, At first, sorry for my bad english My question: i started to learn a bit HTML and CSS just some days ago. Basically, i wanna have a clean code. I see, some Sites work, but i do not know, if they are "good", or clean? For example something like this "try" : www.simon-km.de/wplus/ Is this code good, could anybody have a look at this? Or can someone give me some tipps what i should do better? cheers
At a quick glance it looks well coded. If you use firefox, download the web developer toolbar and you can check to see if the site validates.
Clean code is: Valid Browser-friendly Up to date Fast loading If your code is valid (check at http://validator.w3.org/), it will be fine in most browsers. If your code is up to date, your website will function better. If your website loads fast, your visitors will be satisfied. There are most technical ways to make your code "clean", but those are the gist of it.
Can't get much cleaner than that! (Though I was thinking, you could wrap the "content content..." in some tag, like <p>, but it's totally not critical as long as it's readable to you.) Talking about readability (the most important reason you want 'clean' code), I like to indent my code a bit, just so that it's more clear where things start and end. I get that from being a python programmer, but I find it's useful for web design as well.
Thanks for sharing the "validation". I was very careful on coding my site but yet I found errors... Its a big lift.