WordPress.org

Ready to get started?Download WordPress

Forums

Validating xHTML problem. (6 posts)

  1. dustyhawk
    Member
    Posted 9 years ago #

    validating my site http://dustyhawk.com gives me this

    http://validator.w3.org/check?uri=http%3A%2F%2Fdustyhawk.com%2F

    strange thing is, i have validated each file and it is valid. would like the wordpressers help on this.

  2. justinholt
    Member
    Posted 9 years ago #

    Hehehe try me, I have 400 "errors" and counting

    http://www.juberblog.com

  3. moshu
    Member
    Posted 9 years ago #

    @dustyhawk,
    what do you mean by "validated each file"? You validate your site as it's shown on the validator results page. How do you validate the different files?

  4. dustyhawk
    Member
    Posted 9 years ago #

    basically, each file is validated through the w3.org validation, a permalink is validated and the whole site is validated.

  5. McShelby
    Member
    Posted 9 years ago #

    @dustyhawk: What is so hard to understand in the XHTML validators output?

    Error Line 305, column 20: end tag for "em" omitted, but OMITTAG NO was specified .
    <p><em>Hi Serge,</p>

    It should be
    <p><em>Hi Serge,</em></p>

  6. wahgnube
    Member
    Posted 9 years ago #

    dustyhawk: When you are writing something in WP within some html tag, you need to make sure you don't break it across lines while typing it in.

    For instance, saying
    <small>blah blah blah </small>
    <small>blah blah blah</small>

    will work fine.

    But when you type in,
    <small>blah blah blah

    blah blah blah</small>
    (which seems reasonable, like you'd done with the <em>), WP adds additional paragraph breaks/line breaks in between these lines causing your file to be invalid html.

    As in what was typed above becomes,
    <p><small>blah blah blah</p>

    <p>blah blah blah</small></p>

    leaving hanging <small> tags. Hope that made sense.

    ___
    http://delineate.wahgnube.org/

Topic Closed

This topic has been closed to new replies.

About this Topic