Title: Help with XHTML Code
Last modified: August 18, 2016

---

# Help with XHTML Code

 *  [jnetty99](https://wordpress.org/support/users/jnetty99/)
 * (@jnetty99)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/help-with-xhtml-code/)
 * I’m adding a blogroll to the sidebar using the [http://www.blogrolling.com](http://www.blogrolling.com)
   code and i’m having a weird effect depending on how the code is written.
 * If i add the following, it looks good but the code will not validate
    -  <h2>Blogroll</h2>
 *  - <script language=”javascript” type=”text/javascript” src=”[http://rpc.blogrolling.com/display.php?”></script&gt](http://rpc.blogrolling.com/display.php?”></script&gt);
 * Here is a picture of what it looks like
    [http://img.photobucket.com/albums/v636/Jnetty99/blogroll_short.jpg](http://img.photobucket.com/albums/v636/Jnetty99/blogroll_short.jpg)
 * If i add the missing
    -  code after
 *  - , the page will validate but then this is what it looks like. [http://img.photobucket.com/albums/v636/Jnetty99/blogroll_long.jpg](http://img.photobucket.com/albums/v636/Jnetty99/blogroll_long.jpg)
 * Any ideas?

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

 *  Thread Starter [jnetty99](https://wordpress.org/support/users/jnetty99/)
 * (@jnetty99)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/help-with-xhtml-code/#post-225078)
 * Sorry the code dissapeared let me try this again.
    `<li> <h2>Blogroll</h2> <ul
   ><script language="javascript" type="text/javascript" src="http://rpc.blogrolling.
   com/display.php?r=56a6785d822f78caec491fcf694c0b08"></script></ul> </li>
 * If i had the missing `<li>` after `<ul>` it looks like the second picture.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/help-with-xhtml-code/#post-225098)
 * Since the blogroll js doesn’t display the links in `<li>` elements, why not place
   it all in a paragaph (`<p>`) element, i.e.:
 * `
    <li><h2>Blogroll</h2> <p><script language="javascript" type="text/javascript"
   src="http://rpc.blogrolling.com/display.php?r=56a6785d822f78caec491fcf694c0b08"
   ></script> </p> </li>
 *  Thread Starter [jnetty99](https://wordpress.org/support/users/jnetty99/)
 * (@jnetty99)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/help-with-xhtml-code/#post-225114)
 * Thanks Kafkaesqui
    Yeah that helped and validated, only thing is now i get a 
   white background. i guess i could make a class `<p class="">` or something like
   that and then added to the style.css
 * forgive me if i got the terms incorrectly.
 *  [Lorelle](https://wordpress.org/support/users/lorelle/)
 * (@lorelle)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/help-with-xhtml-code/#post-225119)
 * You got it right!
 * Do that. But give the `class=""` a name 😉 That helps.

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

The topic ‘Help with XHTML Code’ is closed to new replies.

 * 4 replies
 * 3 participants
 * Last reply from: [Lorelle](https://wordpress.org/support/users/lorelle/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/help-with-xhtml-code/#post-225119)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
