Title: XHTML Help! Please?
Last modified: August 18, 2016

---

# XHTML Help! Please?

 *  [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/xhtml-help-please/)
 * Can anyone tell me how I could make this XHTML valid?
    Thanks! `<?php $feedUrl
   = "http://www.azcentral.com/rss/feeds/news.xml"; // enter your feed's url here
   $feedOut = getSomeFeed($feedUrl, 5, false, "feed-azcentral", '', 36); // enter
   a cache name if (!empty($feedOut)) { start_block("AZ News", "feedread", "li");
   echo $feedOut; end_block(); } ?>

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/xhtml-help-please/#post-102770)
 * Well, that is all PHP code, not XHTML. What specific issues are you having with
   validation? The validation tools that are available can be a bit cryptic, I know,
   but they really are your best bet for narrowing down specific problems.
 *  Thread Starter [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/xhtml-help-please/#post-102772)
 * I really dont understand any of them LOL
    Here they are: Line 253, column 17:
   document type does not allow element “li” here; missing one of “ul”, “ol”, “menu”,“
   dir” start-tag `<li id='feedread'> The mentioned element is not allowed to appear
   in the context in which you've placed it; the other mentioned elements are the
   only ones that are both allowed there and can contain the element mentioned. 
   This might mean that you need a containing element, or possibly that you've forgotten
   to close a previous element. One possible cause for this message is that you 
   have attempted to put a block-level element (such as "" or "<table>") inside 
   an inline element (such as "", "<span>", or "<font>"). âœ‰ Line 264, column 99:
   character "$" not allowed in attribute specification list ...f the pipelines 
   that deliver…" $CGTargetWindow> âœ‰ Line 270, column 105: character "$" not allowed
   in attribute specification list ... before he was found dead in…" $CGTargetWindow
   > âœ‰ Line 276, column 108: character "$" not allowed in attribute specification
   list ...t until Election Day to cast…" $CGTargetWindow> âœ‰ Line 282, column 
   104: character "$" not allowed in attribute specification list ...#039;s Playhouse
   Parade 2004…" $CGTargetWindow> âœ‰ Line 288, column 103: character "$" not allowed
   in attribute specification list ...University of Arizona police…" $CGTargetWindow
   > âœ‰
 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/xhtml-help-please/#post-102775)
 * Prolly the list needs to go in ul.. That will get you started.
 *  Thread Starter [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/xhtml-help-please/#post-102777)
 * the whole code?
 *  Thread Starter [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/xhtml-help-please/#post-102785)
 * ok, I did that, and Im still getting these errors…
    `Line 265, column 99: character"
   $" not allowed in attribute specification list ...f the pipelines that deliver…"
   $CGTargetWindow> âœ‰ Line 271, column 105: character "$" not allowed in attribute
   specification list ... before he was found dead in…" $CGTargetWindow> âœ‰ Line
   277, column 108: character "$" not allowed in attribute specification list ...
   t until Election Day to cast…" $CGTargetWindow> âœ‰ Line 283, column 104: character"
   $" not allowed in attribute specification list ...#039;s Playhouse Parade 2004…"
   $CGTargetWindow> âœ‰ Line 289, column 103: character "$" not allowed in attribute
   specification list ...University of Arizona police…" $CGTargetWindow>
 *  Thread Starter [edreams](https://wordpress.org/support/users/edreams/)
 * (@edreams)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/xhtml-help-please/#post-102822)
 * could anyone help at all???
 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/xhtml-help-please/#post-102824)
 * edreams,
    I just visited your site and had a look for myself. I think that the
   best way for you to solve this is to go to David Chait’s site and post something
   there, since this is specific to one of his plugins. [http://www.chait.net](http://www.chait.net)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘XHTML Help! Please?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * Last activity: [21 years, 8 months ago](https://wordpress.org/support/topic/xhtml-help-please/#post-102824)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
