Forums

Validation 27 errors - there is no attribute "placeholder" (12 posts)

  1. tuxxen
    Member
    Posted 5 months ago #

    Hi i have for 2 days been trying to solve my 27 errors and since I'm still here with all errors I'm sure you understand that i have not solve anything.

    I am a newbie on this and feel that i could need some advice

    Could anyone explain to me what those errors come from? i cant understand it (sorry... I'm noob i know)

    Doctype i use:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    Error messange:

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.tuxxen.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&st=1&user-agent=W3C_Validator%2F1.2

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    You are using html5 markup, with XHTML 1.0 Transitional doctype

    Placeholder, srticle, footer, etc are all html5

    <!DOCTYPE html>

    Would be the appropriate doctype if you are going to use html5 markup

  3. tuxxen
    Member
    Posted 5 months ago #

    You are using html5 markup, with XHTML 1.0 Transitional doctype

    Placeholder, srticle, footer, etc are all html5

    <!DOCTYPE html>

    Would be the appropriate doctype if you are going to use html5 markup

    Thank you so much! :D

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    Sure, I can probably help you out a bit more too....

    Most of the remaining errors you have are due to duplicate ID usage.
    That's a simple thing really.

    IDs can only be used once on a page, classes can be used multiple times.

    so if you are going to use an element on a page more than once, it has to be a class, not an ID.

    For example, the overall header is normally only used once on a page, same thing for a nav menu.

    So nav id="whatev" is cool, same with header id="something"

    But something like an article will be used over and over. That's why 2011 is set up to use the post ID as the article ID, that way each post gets a unique ID, whereas the article class can be something like post, etc.... classes can be repeated

  5. tuxxen
    Member
    Posted 5 months ago #

    Sure, I can probably help you out a bit more too....

    Most of the remaining errors you have are due to duplicate ID usage.
    That's a simple thing really.

    IDs can only be used once on a page, classes can be used multiple times.

    so if you are going to use an element on a page more than once, it has to be a class, not an ID.

    For example, the overall header is normally only used once on a page, same thing for a nav menu.

    So nav id="whatev" is cool, same with header id="something"

    But something like an article will be used over and over. That's why 2011 is set up to use the post ID as the article ID, that way each post gets a unique ID, whereas the article class can be something like post, etc.... classes can be repeated

    Cool thanks, i have now fixed all ID errors :)
    This error come up each time i make a new post:

    Line 112, Column 206: Bad value category tag for attribute rel on element a: Keyword category is not registered.

    …nlägg i Allmän information" rel="category tag">Allmän information </span>

    Syntax of link type valid for and <area>:
    A whitespace-separated list of link types listed as allowed on
    and <area> in the HTML specification or listed as an allowed on and <area> on the Microformats wiki without duplicate keywords in the list. You can register link types on the Microformats wiki yourself.

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    http://www.w3schools.com/html5/att_a_rel.asp

    category tag is not listed as an acceptable value for rel, which your theme (or maybe a plugin) seems to be inserting

    rel="category tag">

    tag is acceptable

  7. tuxxen
    Member
    Posted 5 months ago #

    http://www.w3schools.com/html5/att_a_rel.asp

    category tag is not listed as an acceptable value for rel, which your theme (or maybe a plugin) seems to be inserting

    rel="category tag">

    tag is acceptable

    This comes from my theme i believe because i disable all plugins when i validated the site, however i have started to set the plugins up again.

    I have read the link you gave me, is there any way to fix this problem? otherwise i will soon have hundreds of error however how should i fix this since its the theme who do it? (i use twenty eleven theme)

  8. Rev. Voodoo
    Volunteer Moderator
    Posted 5 months ago #

    Ah, I did a little reading. WordPress inserts that rel through get_the_category_list in 2011. I have it on my site as well.

    http://www.whitneykrape.com/wordpress/quick-fix-for-relcategory-tag-in-wordpress/
    Might have some useful info. Ultimately, it doesn't hurt anything to have it there... I'm not going to worry about it on my site

  9. tuxxen
    Member
    Posted 5 months ago #

    Thank you so much Rev, Voodoo you have saved me lots and lots of hours, i will check this out tomorrow first thing i do.

    Many thanks!

  10. tuxxen
    Member
    Posted 5 months ago #

    one question tough:

    should this still be in?:

    <html xmlns="http://www.w3.org/1999/xhtml">

  11. esmi
    Theme Diva & Forum Moderator
    Posted 5 months ago #

    Yes.

  12. bettingexchange
    Member
    Posted 3 months ago #

    I love you! It works and i passed the HTML5 validation! :D

Reply

You must log in to post.

About this Topic