Problem with form input type in XHTML 1.1
-
In my sidebar there is this code:
<h2>Search</h2>
<div id=”searchdiv”>
<form id=”searchform” method=”get” action=””>
<input type=”text” name=”s” size=”15″ /></form>
</div>The template uses XHTML 1.1 and the problem is that this code doesn?′t validate. I get 2 messages:
1. document type does not allow element “input” here; missing one of “ins”, “del”, “h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “p”, “div”, “address”, “fieldset” start-tag.
2. end tag for “form” which is not finished
Both concerning this line:
<input type=”text” name=”s” size=”15″ /></form>
How can I fix this to make it validate.
Could not find an answer by searching.Bernhard
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with form input type in XHTML 1.1’ is closed to new replies.