Validation issue

Discussion in 'PHP' started by indyonline, Jul 2, 2009.

  1. #1
    indyonline, Jul 2, 2009 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    For the first, you cannot put a h2 tag here unless it is in a <li> tag. Best best is to put the h2 above the <ul> tag. Otherwise put it within a <li> tag.

    For the second, you are closing a <ul> tag but there is no opening tag for it. It looks to me like it is a completel type, as the previous table and other tags are not within a <li>.
     
    jestep, Jul 2, 2009 IP
  3. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #3
    Ichecked all those. They all have them. If I delete everything out of my right side bat it will validate but if I add one widget, any widgets, it wont validate and gets that error. So this would mean the error is in my right sidebar right? or could it be in the theme functions?

    Right sidebar
    <div id="right">
    <ul>
    <?php if ( !function_exists('dynamic_sidebar')
            || !dynamic_sidebar(2) ) : ?>
            
    			
            
    
    <li><h2>Meta</h2>
    	<ul>
    		<?php wp_register(); ?>
    		<li><?php wp_loginout(); ?></li>
    		<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
    		<?php wp_meta(); ?>
    	</ul>
    </li>
    
    
    
    
    
    <?php endif; ?>
    
    </ul>
    
    </div>
    
    
    Code (markup):
     
    indyonline, Jul 3, 2009 IP