The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Validating xHTML problem. (6 posts)

  1. dustyhawk
    Posted 10 years ago #

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


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

  2. justinholt
    Posted 10 years ago #

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


  3. moshu
    Posted 10 years ago #

    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
    Posted 10 years ago #

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

  5. McShelby
    Posted 10 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
    Posted 10 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.


Topic Closed

This topic has been closed to new replies.

About this Topic