Title: Problem for closing markup
Last modified: August 21, 2016

---

# Problem for closing markup

 *  Resolved [Ashesheart](https://wordpress.org/support/users/ashesheart/)
 * (@ashesheart)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wrong-markup/)
 * Hello, there is a markup validation problem :
 * Here’s my code :
 *     ```
       <?php if (function_exists('vote_poll') && !in_pollarchive()): ?>
             <ul>
               <li><?php get_poll(2);?></li>
             </ul>
           <?php endif; ?>
       ```
   
 * And the output :
 *     ```
       <ul>
       <li><div id="polls-2" class="wp-polls">
       	<form id="polls_form_2" class="wp-polls-form" action="/ashesheart/index.php" method="post">
       		<p style="display: none;"><input type="hidden" id="poll_2_nonce" name="wp-polls-nonce" value="acd6e1074f" /></p>
       		<p style="display: none;"><input type="hidden" name="poll_id" value="2" /></p>
       		<h3 id="poll-question-2" class="poll-question">inFamous Second c'est</h3><div id="polls-2-ans" class="wp-polls-ans"><ul class="wp-polls-ul">
       		</li>
       <li><input type="radio" id="poll-answer-7" name="poll_2" value="7" /> <label for="poll-answer-7">Un très bon jeu</label></li>
       <li><input type="radio" id="poll-answer-8" name="poll_2" value="8" /> <label for="poll-answer-8">Un jeu moyen</label></li>
       <li><input type="radio" id="poll-answer-6" name="poll_2" value="6" /> <label for="poll-answer-6">Le meilleur jeu PS4</label></li>
       <li><input type="radio" id="poll-answer-10" name="poll_2" value="10" /> <label for="poll-answer-10">Ne se prononce pas</label></li>
       <li><input type="radio" id="poll-answer-9" name="poll_2" value="9" /> <label for="poll-answer-9">Pas intéressant du tout</label></li>
       		<input id="vote-poll-button-2" type="button" name="vote" value="Voter" class="btn vote-poll-button" onclick="poll_vote(2);" />
       	</form>
       </div>
   
       </ul>
       ```
   
 * There is the same markup closing problem when you’ve already vote (when there
   isn’t the form and the button).
 * [https://wordpress.org/plugins/wp-polls/](https://wordpress.org/plugins/wp-polls/)

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

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wrong-markup/#post-5041414)
 * Not sure if I get you, it seems to work fine on my site [http://lesterchan.net/](http://lesterchan.net/).
   Did you miss out any closing tags in the template? Polls -> Polls Template
 *  Thread Starter [Ashesheart](https://wordpress.org/support/users/ashesheart/)
 * (@ashesheart)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wrong-markup/#post-5041416)
 * I didn’t change the Polls template 🙁
 * Edit : i updated the plugin and it works well. Sorry for the inconvenience

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

The topic ‘Problem for closing markup’ is closed to new replies.

 * ![](https://ps.w.org/wp-polls/assets/icon.svg?rev=977996)
 * [WP-Polls](https://wordpress.org/plugins/wp-polls/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-polls/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-polls/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-polls/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-polls/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-polls/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ashesheart](https://wordpress.org/support/users/ashesheart/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/wrong-markup/#post-5041416)
 * Status: resolved