Beginner, clean code?

Discussion in 'HTML & Website Design' started by Fillion91, Jul 15, 2009.

  1. #1
    Hello,

    At first, sorry for my bad english:p

    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
     
    Fillion91, Jul 15, 2009 IP
  2. jason18241

    jason18241 Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    jason18241, Jul 15, 2009 IP
  3. Destinyx3

    Destinyx3 Peon

    Messages:
    430
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    Destinyx3, Jul 15, 2009 IP
  4. mushu

    mushu Peon

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the best way is to use some validator.
     
    mushu, Jul 16, 2009 IP
  5. kiddo

    kiddo Peon

    Messages:
    243
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    kiddo, Jul 17, 2009 IP
  6. dylangle

    dylangle Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for sharing the "validation".
    I was very careful on coding my site but yet I found errors...

    Its a big lift. :)
     
    dylangle, Jul 18, 2009 IP