08-08-2006, 22:49
|
#1
|
|
Permanently Banned
Join Date: Jun 2003
Location: Nr Carnforth
Age: 50
Services: M6 Keele
Posts: 5,462
|
Any html gurus about (markup validation)
I have successfully removed 36 of 39 errors from my web site but have the following 3 errors still remaining in the source included at the bottom. - <LI class=msg_err>Error Line 24, column 55: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag .
<input type="text" value="" name="s" id="s" size="21" />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>").
✉
<LI class=msg_err>Error Line 25, column 55: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag . <input type="submit" id="searchsubmit" value="search" />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>").
✉
- Error Line 36, column 19: document type does not allow element "li" here; missing one of "ul", "ol" start-tag . <li class="pagenav"> <ul><li class="page_item"><a href="http://pinkforgirls.co.uThe 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>").
Quote:
<div class="side">
<br/>
<form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="21" />
<input type="submit" id="searchsubmit" value="search" />
</form>
<br/>
|
any help / pointers would be welcome
|
|
|