9 replies [Last post]
sambkk
Offline
Regular
Last seen: 12 years 33 weeks ago
Timezone: GMT-5
Joined: 2006-04-15
Posts: 27
Points: 0

Hi guys
Could someone help me with this small validation problem..

I get 2 errors (@ http://validator.w3.org/#validate_by_input)

I didnt sleep well last night..tired..but this g*#damn validator :curse: :curse: refuses to co-operate!!

any tips on how to improve design always appreciated..
thanks

sami

heres my code:

HTML:

Sample Template 9

  • Home

  • About us

  • Services

  • Map

  • Contact Us



  • www.company9.com Street address, city, zip, Country

    Company 9 website



    Company 9 is a small bussiness template. The template can be customized on request to fit your needs. All images, links, fonts and colors can be adjusted to fit company style and image.


    In posuere eleifend odio quisque semper augue mattis wisi.Donec leo, vivamus fermentum nibh in augue praesent a lacus at. Donec leo, vivamus fermentum nibh in augue praesent a lacus at urna congue rutrum. Quisque dictum integer nisl risus, sagittis convallis, rutrum id, congue, and nibh.
    In posuere eleifend odio quisque semper augue mattis wisi.Donec leo, vivamus fermentum nibh in augue praesent a lacus at. Donec leo, vivamus fermentum nibh in augue praesent a lacus at urna congue rutrum.


    In posuere eleifend odio quisque semper augue mattis wisi.Donec leo, vivamus fermentum nibh in augue praesent a lacus at. Donec leo, vivamus fermentum nibh in augue praesent a lacus at urna congue rutrum. Quisque dictum integer nisl risus, sagittis convallis, rutrum id, congue, and nibh.


    In posuere eleifend odio quisque semper augue mattis wisi.Donec leo, vivamus fermentum nibh in augue praesent a lacus at. Donec leo, vivamus fermentum nibh in augue praesent a lacus at urna congue rutrum.


    Go Back To Start


     


    www.company9.com
    www.company9.com
    Image Text Here
    www.company9.com


    Recent News



    In posuere eleifend odio quisque semper augue mattis wisi.Donec leo vivamus
    fermentum nibh in augue praesent a lacus at. Donec leo, vivamus fermentum
    nibh in augue praesent a lacus at urna congue rutrum. Quisque dictum integer nisl risus, sagittis convallis, rutrum id, congue, and nibh..

    www.company9.comHome | About us | Products | Map | Contact Us www.company9.com
    Copyright © 2007 information here.
    Design by: samda

    and here the css

    /* CSS Document */
    body {
    padding:0px;
    margin:0px;
    background:url(images/bg.jpg) 0 0 repeat-x #fff;
    color:#5E5E5E;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: small;
    text-align: justify;
    }

    div, p, ul, h2, h3, img{padding:0px; margin:0px;}
    ul{list-style-type:none;}

    /* start top */

    #topblock{
    width: 900px;
    height: 143px;
    margin: 0 auto;

    }

    #logo{
    float: left;
    width: 220px;
    height: 143px;

    }

    #logo h1 a{
    float: right;
    margin: 30px 40px 0 0px;
    font-size: 40px;
    letter-spacing: -4px;
    color: #FBA942;
    font-weight: 200;
    }

    #logo h2 {
    float: right;
    margin: 5px 20px 0 0;
    font-size: 16px;
    letter-spacing: -2px;
    /* color: #FBA942; */

    color: white;
    font-weight: 100;
    }

    #menubx {
    float: left;
    width: 650px;
    background:url(images/navbarbkg.jpg) no-repeat;
    }

    #menubx ul {
    float: left;
    margin-top: 22px;
    padding: 0;
    list-style: none;

    }

    #menubx li {
    float: left;
    display: block;
    height: 78px;
    text-align: center;
    }

    #menubx li:hover {
    /* background: #F9F8F1; */
    color: #FBA942;
    background:url(images/flip.jpg)
    }

    #menubx a {
    display: block;
    width: 98px;
    height: 78px;
    /* padding: 5px 20px 0 20px; */
    text-align: center;
    text-decoration: none;
    text-transform: lowercase;
    font-weight: bold;
    color: white;
    }

    #menubx a:hover{
    color: #FBA942;
    background:url(images/flip.jpg);
    }

    #menubx li.active {
    background:url(images/flip.jpg);
    color: #F09E36;

    }

    #menubx a.active {
    background:url(images/flip.jpg)
    color: #F09E36;
    }

    .end {

    width:80px;
    height: 100px;;
    float:left;

    }

    #extra{
    float:left;
    width: 600px;
    text-align: right;
    color: white;
    line-height: 30px;
    letter-spacing: .5px;
    }

    /* end top */

    #space {
    width: 900px;
    height: 45px;
    }

    #spaceV {
    float: left;
    width: 45px;
    height: 400px;
    }

    /* start main */

    #mainblockhome{
    width: 900px;
    height: 650px; /* only good for home page!! */
    background:url(images/mainbkg.jpg) no-repeat;
    /* margin: 0 auto; */

    /* position: absolute; */
    margin-left: 40px;

    }

    #maincontent{
    float: left;
    background:url(images/contbkg.jpg) no-repeat;
    width: 500px;
    /* height: 800px; */

    }

    #maincontent h2 {

    /* float: right;
    margin: 5px 20px 0 0;
    font-size: 17px;
    letter-spacing: -2px; */
    /* color: #FBA942; */
    font-size: 17px;
    letter-spacing: 2px;
    font-variant:small-caps;
    color: #046A99;

    }

    .MCtxtWl{
    margin-left: 18px;
    margin-top: 20px;
    width: 460px;
    }

    .note{
    font-weight: bolder;

    }

    .note a{
    text-decoration: none;
    color: #FBA942;

    }

    .note a:hover {
    text-decoration: none;
    color: #046A99;

    }

    #RH {

    float:left;

    margin-left: 20px;

    width: 280px;
    height: 18px;

    }

    #IMG {
    float: left;
    margin-left: 20px;
    line-height: 20px;
    width: 287px;
    height: 290px;
    text-align: center;

    }

    #recent{
    margin-left: 20px;
    float: left;
    width: 287px;
    background:url(images/recent.jpg) no-repeat;
    }

    #recent h2 {

    /* float: right;
    margin: 10px 20px 0 0;
    font-size: 17px;
    letter-spacing: -2px; */
    /* color: #FBA942; */
    font-size: 17px;
    letter-spacing: 2px;
    font-variant:small-caps;
    color: #046A99;

    }

    .SIDEtxtWl{
    margin-left: 18px;
    margin-top: 20px;
    width: 240px;
    }

    /* end main */

    #footer{

    text-align: center;
    height: 120px;
    line-height: 24px;

    }

    #footer a{
    text-decoration: none;
    color: #FBA942;

    }

    #footer a:hover{
    text-decoration: none;
    color: #046A99;

    }
    :thumbsup: :thumbsup:
    smilies are pretty cool when you have no energy for anything else..

    Tags:
    Tyssen
    Tyssen's picture
    Offline
    Moderator
    Brisbane
    Last seen: 5 years 24 weeks ago
    Brisbane
    Timezone: GMT+10
    Joined: 2004-05-01
    Posts: 8201
    Points: 1386

    Can we have a link to the

    Can we have a link to the page so we can see what the validation errors are or can you tell us what they are so we don't have to scan your code line by line to work it out?

    How to get help
    Post a link. If you can't post a link, jsFiddle it.
    My blog | My older articles | CSS Reference

    Hugo
    Hugo's picture
    Offline
    Moderator
    London
    Last seen: 5 years 11 weeks ago
    London
    Joined: 2004-06-06
    Posts: 15668
    Points: 2806

    What are the errors? how

    What are the errors? how about you validate the code and post up the results? rather than post a link to the validator and expect us to copy 'n' paste the code above ourselves, I have no inclination to do that, sorry Smile make peoples lives easier and you'll get better responses.

    Also is this a CSS problem? is it in the right forum section?

    Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
    ----------------------------------------------------------------
    Please post ALL your code - both CSS & HTML - in [code] tags
    Please validate and ensure you have included a full Doctype before posting.
    Why validate? Read Me

    velo
    velo's picture
    Offline
    Enthusiast
    Fayettenam
    Last seen: 11 years 1 week ago
    Fayettenam
    Timezone: GMT-5
    Joined: 2004-11-11
    Posts: 181
    Points: 0

    I can't even get to the W3C

    I can't even get to the W3C markup validator lately. every time I enter a URL it comes back with an error page saying I've made too many requests per second even if it's my first one......wtf?

    Give a man a fire and he will be warm for a while. Set a man on fire and he will be warm for the rest of his life.

    sambkk
    Offline
    Regular
    Last seen: 12 years 33 weeks ago
    Timezone: GMT-5
    Joined: 2006-04-15
    Posts: 27
    Points: 0

    Hi guys thanks for the

    Hi guys
    thanks for the attention.I am sorry I should have posted the errors straight away. Brain is stalling sorry.

    ERRORS: (2)

    Line 9, Column 6: end tag for element "HEAD" which is not open.

    +

    Line 12, Column 5: document type does not allow element "BODY" here.

    I am fairly clueless about how to fix those 2...
    My apologies again if this isnt the correct section.

    And yes, the service has been giving me errors as well..(too many requests when just trying start with the first one)
    Thanks

    Sami

    Triumph (not verified)
    Anonymous's picture
    Guru

    Change <link

    Change
    to

    roytheboy
    roytheboy's picture
    Offline
    Guru
    North Wales, UK
    Last seen: 6 years 35 weeks ago
    North Wales, UK
    Timezone: GMT+1
    Joined: 2004-09-18
    Posts: 2233
    Points: 41

    Just to explain the above,

    Just to explain the above, you have written a line of code in XHTML syntax but declared the document (with your Doctype) to be HTML.

    Life's a b*tch and then you die!

    sambkk
    Offline
    Regular
    Last seen: 12 years 33 weeks ago
    Timezone: GMT-5
    Joined: 2006-04-15
    Posts: 27
    Points: 0

    Thanks what a beautiful

    Thanks
    what a beautiful answer as well...lol
    I wouldnt have figured that one

    sami

    Triumph (not verified)
    Anonymous's picture
    Guru

    roytheboy wrote:Just to

    roytheboy wrote:
    Just to explain the above, you have written a line of code in XHTML syntax but declared the document (with your Doctype) to be HTML.

    Yes, I forgot the explaination. I need Roy around here more than he knows. Smile

    roytheboy
    roytheboy's picture
    Offline
    Guru
    North Wales, UK
    Last seen: 6 years 35 weeks ago
    North Wales, UK
    Timezone: GMT+1
    Joined: 2004-09-18
    Posts: 2233
    Points: 41

    WARNING: about to go

    WARNING: about to go off-topic...

    Triumph wrote:
    I need Roy around here more than he knows. Smile

    I do my best to keep an eye out for spam, and I try to read some of the Off Topic threads in case I can give a quick answer, but so many of the problems need to be studied at length that I'm frightened of coming up with a half-cocked solution that only leads to more questions and before you know it you're expected to walk someone by the hand through developing their entire project for them!

    As I've said before, this is a very intensive year for me as I bring a new (very complex) application to market and update an existing one. These products are/will be fully internationalised and I thought all the timezone and DSH stuff was complex until I started on the tax computations. Have you any idea how complex the world's different tax rates/bands/rules are? Geez it's doing my head in!

    I shall never again moan about VAT, which is a walk in the park compared to some of the US taxes (for example)! You've got some taxes which are percentage based, and some which are flat-rate. Some which are flat-rate per person (e.g. Tourist Tax), and some which are flat-rate per item. Then you've got some taxes that apply to certain age groups, and some which apply at certain times of the year. Some tax rate changes are effective from the tax point (date of invoice) and some are effective from the date of supply. And then you can have an obscure mix of all of the above ending up with five different taxes of different types applying to the purchase of one item or service ...and that's just what I'm working on this week!

    So please excuse me for not being so 'regular' this year, but you can blame your wonderful tax departments among others!

    Life's a b*tch and then you die!