w3c validation - HTML Validator giving me error on form input type, element not allowed in context -


I have a code that the HTML validator is giving me an error:

  & Lt; Input type = "text" id = "search" name = "keyword" /> & Lt; Input type = "submit" value = "search" name = "submit" />   .imgur.com / 1B67V.png "alt =" Screen shot of error in HTML Validator. ">  

This is an error message I received:

The mention element is not allowed to appear in the context in which you have placed it; Both are those which are allowed there and the element can be mentioned in it. This can mean that you need an element, or possibly you have forgotten to close the previous element.

There are 2 types of elements in the body of an HTML file, elements Inline and block a possible reason for this message is that you have an inline element (such as "and lieutenant; a and"; "," or lt; span & gt; ", or" & lt; font & gt; ; ").

In the following sample, & lt; Font & gt; The tag is an inline tag that can contain only other inline tags, but & lt; P & gt; Tag is a block tag then a & lt; P & gt; Tag & lt; Font & gt; Can not include the tag.

This is the block of HTML which is from:

   & Lt; Input type = "hidden" name = "XID" value = "9040094104d8ba87b6ef9b43e998fc8c89e0d9f" /> & Lt; Input type = "hidden" name = "RP" value = "search / results" /> & Lt; Input type = "hidden" name = "NRP" value = "" /> & Lt; Input type = "hidden" name = "rs" value = "" /> & Lt; Input type = "hidden" name = "status" value = "" /> & Lt; Input type = "hidden" name = "weblog" value = "form | alumni_fixed | accommodation_ff | international_fike" /> & Lt; Input type = "hidden" name = "search_in" value = "everywhere" /> & Lt; Input type = "hidden" name = "ou" value = "all" /> & Lt; Input type = "hidden" name = "site_id" value = "1" /> & Lt; / Div & gt; & Lt; Input type = "text" id = "search" name = "keyword" /> & Lt; Input type = "submit" value = "search" name = "submit" /> & Lt; / Form & gt; & Lt; / Li & gt; In HTML4 / XHTML1, you can not directly insert the inline content into the   

> form element on the other hand, HTML5 lifts that requirement .

Thus, if the verification error bothers you (bad things are ...), a p or add div element the last two Input s.


Comments