Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    May 2006
    Posts
    107
    Thanks
    1
    Thanked 0 Times in 0 Posts

    html validation problem

    Code:
    <META NAME="keywords" CONTENT="diet, weight loss, magic chicken diet, chicken di
    Error:
    there is no attribute "NAME".

    Code:
    <META NAME="keywords" CONTENT="diet, weight loss, magic chicken diet, chicken di
    Error:
    there is no attribute "CONTENT".

    Code:
    ss, magic chicken diet, chicken diet">
    Error:
    element "META" undefined.

    Code:
    <embed src="http://www.magicchickendiet.com/flash_header.swf" qual
    Error:
    there is no attribute "src".

    here is complete list of issues,
    Please help me if you can .

    here is link of website:

    http://www.magicchickendiet.com/

    i have now left with 95 errors on it, there were 150+ at start.

    thanks.

  • #2
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Since you use XHTML you must selfclose the element like this:

    <META NAME="keywords" CONTENT="diet, weight loss, magic chicken diet, chicken diet" />

    Also, the meta tags must be between <head> and </head>. I can see you have one in between your body tags. (on the index page).
    .
    .

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Learn to read the forum rules before you post again. You've already posted this here. http://www.codingforums.com/xml/119980-html-validation-problem.html#post593690
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Regular Coder
    Join Date
    May 2006
    Posts
    107
    Thanks
    1
    Thanked 0 Times in 0 Posts
    sorry.

    now i am left with only 18 errors and now i don't know what to do with these errors can anyone help me.

    here is link: http://www.magicchickendiet.com for this page i am left only with 18 errors:

    Errors are:
    end tag for element "HEAD" which is not open.
    document type does not allow element "BODY" here.
    there is no attribute "SRC".
    there is no attribute "QUALITY".
    there is no attribute "PLUGINSPAGE".
    etc
    can anyone help me with this?

    thanks

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Any place where it says this
    Quote Originally Posted by w3.org
    there is no attribute "BACKGROUND"
    You have to use the style attribute or style it using a stylesheet so something like this
    Code:
    background="images/left_reasons_bg.jpg"
    would become this
    Code:
    style="background:url(images/left_reasons_bg.jpg)"
    The attached file will get you down to 8 errors.

    Its trying to validate the embed tag in the noscript tags. I suggest you use SWFobject instead of the adobe variation.
    Attached Files Attached Files
    Last edited by rmedek; 07-29-2007 at 08:18 AM. Reason: de-flaming
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,696
    Thanks
    0
    Thanked 232 Times in 227 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •