WordPress.org

Ready to get started?Download WordPress

Forums

[closed] W3C Errors - How to fix? (6 posts)

  1. chrisslemke
    Member
    Posted 9 months ago #

    hi all,

    this might be a beginners question. I run the site http://canyoningallgäu.de/ (same as http://xn--canyoningallgu-iib.de/) and the W3C Analyzer has found 11 errors in my code (see:http://validator.w3.org/check?uri=http%3A%2F%2Fcanyoningallg%C3%A4u.de%2F&charset=%28detect+automatically%29&doctype=Inline&group=0)

    Now, where do I need to go and fix those? The Page / Text Editor doesn't go that deep. And I can't find the right page in the FTP.

    I', glad if someone can help

    Cheers

    Chris

  2. Thimothe
    Member
    Posted 9 months ago #

    Hi Chris,

    Some errors come from your domain name having 2 dashes which is interpreted as an attempt to close some comments. This is only fixable by having the site hosted in an URL with at most 1 dash.

    Other errors come from a closing <p> tag when no opening paragraph tag was used. The error happens in your video boxes at the bottom of the page

    Also related to your video boxes: you use iframes with a frameborder="0" which is obsolete, you'll have to remove that property or update the component which includes those videos.

    This will get rid of many errors

    Also, if you look in the console, you'll see many more warnings associated with your CSS. Chrome Developer Tools will help you in resolving those.

  3. chrisslemke
    Member
    Posted 9 months ago #

    hi Thimothe,

    thanks for the reply.

    You must be an expert because I hardly understand anything :)

    So I assume 1 (domain name) is not fixable. Even though this is just a "Warning" so it doesn't matter so much.

    OK, I get the p - closing issue. But where can I go and find this in my html? Is it in one of the files in my ftp? Or can I fix it in the wordpress dashborad?

    About my videos: I don't see where I can go about the iframes. Is this in the code as well?

    Holy cow, I looked at teh Chrome Developer Tools the first time, I don't get anything...

    Thanks again for the help, gotta do chores now :(

    Cheers

    Chris

  4. Thimothe
    Member
    Posted 9 months ago #

    Hi Chris,

    I would prefer not passing as an expert and you understanding everything ;) I will clarify.

    For the dash thing in the domain name, it can be fixed by using the canyoningallgäu.de domain as the main one. The pros of that is that your domain name will be better SEO (Search Engine Optimization) wise (it's best to avoid dashes all together and it's even better to avoid double dashes which are confusing to visitors). You can check Moving WordPress which will guide you the changing your WP address.

    The double dashes also throws HTML5 validation errors which still let a visitor get a working copy of your site but you might end up penalized SEO wise.

    For the <p> tags, the simplest option would be to use another slideshow plugin which will validate properly. It is a bad start for this plugin if the output is wrong.

    The iFrame will be also taken care of by changing your slideshow plugin to a better one. Make sure you read other users review of the plugin in the WP repository.

    Indeed, the dev tools are confusing at first. You'll need a basic knowledge of HTML and CSS to be able to use it properly but playing around with this tool is an incredible learning experience. With these suggestions, you shouldn't have to play around in the code to fix your issues.

    I hope I made it easier to understand. Let me know if you need more help.

  5. Niagaragirl
    Member
    Posted 3 months ago #

    Hi everyone,

    I hope I am posting in the correct forum.

    I received an error code from validator W3.org

    while checking this document as HTML5" (My website: http://www.thinktatnkdiva.com
    Validation Output: 6 Errors

    Error Line 1, Column 1: Forbidden code point U+007f.

    <!DOCTYPE html>


    Error Line 1, Column 1: Non-space characters found without seeing a doctype first. Expected <!DOCTYPE html>.

    <!DOCTYPE html>


    Error Line 1, Column 1: Element head is missing a required instance of child element title.

    <!DOCTYPE html>
    Content model for element head:
    If the document is an iframe srcdoc document or if title information is available from a higher-level protocol: Zero or more elements of metadata content, of which no more than one is a title element and no more than one is a base element.
    Otherwise: One or more elements of metadata content, of which exactly one is a title element and no more than one is a base element.

    Error Line 1, Column 16: Stray doctype.

    <!DOCTYPE html>


    Error Line 9, Column 19: Stray start tag html.

    <html lang="en-US">


    Error Line 9, Column 19: Cannot recover after last error. Any further errors will be ignored.

    <html lang="en-US">

    I am running Child Theme for twenty fourteen. I haven't added any CSS coding or HTML. One of the reasons I used this (simple) theme is that I am a beginner and didn't want to deal with those things.

    Is the coding for the Child Theme invalid? I have no idea what to do about this. Does anyone have a solution?

    Thanks in advance for any help.

    J~

  6. esmi
    Forum Moderator
    Posted 3 months ago #

    If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's topic.

    I am now closing this 6 month old topic.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags