WordPress.org

Ready to get started?Download WordPress

Forums

Understanding lines in xhtml validator. (8 posts)

  1. nevermore
    Member
    Posted 7 years ago #

    Yes I did an extensive search first.
    My site is invalid with alot of errors. I would try and fix them if I understood how to find the error and line number when i open my files.
    I downloaded a few validators and it turns out they are only html..am I looking for css or php validators or an all in one. and...what are the consequences of having an invalid site. Do I go to the whipping post? Do I not get goodies in my stocking..sigh, no really..what does it mean. happy holidays.

  2. whooami
    Member
    Posted 7 years ago #

    ...what are the consequences of having an invalid site.

    The consequences are demonstrated in your other post:

    http://wordpress.org/support/topic/98279?replies=1

    Thats a direct result of not using valid xhtml

  3. vkaryl
    Member
    Posted 7 years ago #

    Finding the error/line number in your theme files: view source of your blog, copy the entire source, open something "vanilla" like Notepad2 which shows line numbers (http://flos-freeware.ch), paste the source, then follow the line numbers shown in the validator output.

    Once you see how the source looks, you can generally figure out which file you need to edit.

  4. nevermore
    Member
    Posted 7 years ago #

    Whooami, thanks..It makes sense..
    Vkaryl, I opened it in notepad2 but didn't know what to click to show the line numbers. I'll read up more on it. thanks for the help..

  5. nevermore
    Member
    Posted 7 years ago #

    I am hijacking my own old post so bear with me.

    1: Is there a dire consequence of not having my site totally free of errors? aside form any visual mess ups that are obvious.

    2: I check out my site through the validator and i get a line like this
    Error Line 157 column 10: end tag for "ul" which is not finished.

    How do I know where to find that in my files??

  6. moshu
    Member
    Posted 7 years ago #

    Go back and check the "Show Source" box and hit Revalidate.
    Every line number will become a clickable link taking you to the exact location of the error in the source. From there you should be able to figure it out.

  7. nevermore
    Member
    Posted 7 years ago #

    Thanks Moshu..muchly

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    1: Is there a dire consequence of not having my site totally free of errors?

    If the site is invalid, browsers will use what's known as "quirks mode" to render it. This can cause all sorts of difficulties and problems in trying to make your site look the way you want it to look. It also means that different browsers and systems will display it in different ways, which is not so much the case with valid sites.

Topic Closed

This topic has been closed to new replies.

About this Topic