1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Webpage coded badly? [css]

Discussion in 'HTML, Graphics & Programming' started by RandomTom, 13 May 2006.

  1. RandomTom


    Joined: 28 Sep 2004

    Posts: 8,541

    Hey, I was a bit bored today so I thought i'd just get up a homepage for a website I could later produce, after my exams really. So I hosted it on beansprouts uploader and showed a couple of people, and my friend that semantically it was poorly coded, how would I go about improving this? I'm only a newbie to this sort of thing. I know that the header tag is poor but I can't think of a way round that. I've only studied the beginner section of html dog so expect nothing great. :)

    Click Me!

    Once some code has been looked at, how do you feel about the design of the page? lol :p :D
  2. robmiller


    Joined: 26 Dec 2003

    Posts: 16,522

    Location: London

    It's not that bad. Add some text to your <h1> so Google/screenreaders pick it up, put the reflection image as the background of a div since it's purely presentational, and instead of having your text headers as <img> tags, use <h3> tags and apply the images as backgrounds.
  3. Beansprout

    Man of Honour

    Joined: 31 Jan 2004

    Posts: 16,313

    Location: Plymouth

    Looks nice :)

    I'd put the footer in its own <div> - and I like your fine choice of uploader;)
  4. Al Vallario


    Joined: 3 Aug 2005

    Posts: 4,534

    Location: UK

    Use the Phark Image Replacement Technique to shift the graphical headers out of the HTML and into the CSS where they belong, leaving behind only appropriate text in the header tags. Make the "Introduction and about me", "Gallery" and "Read some news" paragraphs into level 2 headers (<h2>) and add some padding to the container div to stop the text hitting the edges and looking odd.

    Other than that, not bad :)
  5. iCraig


    Joined: 21 Apr 2004

    Posts: 13,314

    Location: Wolverhampton

    The code isn't poor, it's not prize winning stuff or anything but definately better than some garbage I've seen. I was expecting tables, and iframes etc.

    You're doing well, keep it up. :)
  6. unknowndomain


    Joined: 18 Apr 2004

    Posts: 2,613

    Location: Herne Hill, London

    What did ** friends actually say was wrong with it?