Title: html error
Last modified: August 19, 2016

---

# html error

 *  [connie1](https://wordpress.org/support/users/connie1/)
 * (@connie1)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/html-error/)
 * When I ran a validation test for my site [http://www.marylandtriallawyer.net](http://www.marylandtriallawyer.net)
   I got 1 error as follows: How do I fix this? Thank you in advance.
 * Validation Output: 1 Error
 *  1. Error Line 231, Column 55: document type does not allow element “li” here;
   missing one of “ul”, “ol”, “menu”, “dir” start-tag
 * `…75742611" class="widget widget_text"> <div class="textwidget">Copyright`
 *  ✉
 *  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 `"<p>"` or `"<table>"`) inside an inline element (such
   as `"<a>"`, `"<span>"`, or `"<font>"`).
 * Here is the line in error:
 * `#231 <li id="text-375742611" class="widget widget_text"> <div class="textwidget"
   >Copyright 2009 Constance A. Camus</div></a>`

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

 *  [lhoylhoy](https://wordpress.org/support/users/lhoylhoy/)
 * (@lhoylhoy)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/html-error/#post-1049101)
 * just paste here your code ok?
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/html-error/#post-1049102)
 * [@lhoylhoy](https://wordpress.org/support/users/lhoylhoy/) – easier if you just
   follow her link [and validate it](http://validator.w3.org/check?uri=http%3A%2F%2Fmarylandtriallawyer.net%2F&charset=(detect+automatically)&doctype=Inline&ss=1&group=0&verbose=1&user-agent=W3C_Validator%2F1.654)
   😉
 *  [lhoylhoy](https://wordpress.org/support/users/lhoylhoy/)
 * (@lhoylhoy)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/html-error/#post-1049105)
 * hehe sorry i didn’t notice hehe!
 *  [darran](https://wordpress.org/support/users/darran/)
 * (@darran)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/html-error/#post-1049126)
 * You were missing a `<ol>` or `<ul>`, just nest your `<li>` within them and it
   will validate.

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

The topic ‘html error’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [text widget](https://wordpress.org/support/topic-tag/text-widget/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [darran](https://wordpress.org/support/users/darran/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/html-error/#post-1049126)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
