html - W3C validation error: there is no attribute "placeholder" -


i getting following error w3c validation:

line 326, column 63: there no attribute placeholder

… type="text" name="pc" id="postcodefield" placeholder="vul hier uw postcode" /> 

you have used attribute named above in document, document type using not support attribute element. error caused incorrect use of "strict" document type document uses frames (e.g. must use "transitional" document type "target" attribute), or using vendor proprietary extensions such "marginheight" (this fixed using css achieve desired effect instead).

this error may result if element not supported in document type using, undefined element have no supported attributes; in case, see element-undefined error message further information.

how fix: check spelling , case of element , attribute, (remember xhtml lower-case) and/or check both allowed in chosen document type, and/or use css instead of attribute. if received error when using element incorporate flash media in web page, see faq item on valid flash.

please see source code:

<form method="get" action="">     <input type="text" name="pc" id="postcodefield" placeholder="vul hier uw postcode" />     <input type="submit" class="search_button" value="zoeken" id="searchbutton" /> </form> 

please me solve this.

i believe that's because of doctype. you're using html5 markup need:

<!doctype html> 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -