Undefined attribute name (placeholder).和Undefined attribute name (autocomplete).问题

myeclipse中,在写jsp代码后出现了Undefined attribute name (placeholder).和Undefined attribute name (autocomplete).问题


百度了一下,说是头文件出了问题

原来是:


改为:


问题解决!

原因:

 在 HTML 4.01 中有三种 <!DOCTYPE> 声明。在 HTML5 中只有一种:

<!DOCTYPE html>
placeholder和autocomplete是htm5的新标签,所以才会报错。
posted @ 2018-05-05 20:14  legendaryhaha  阅读(1955)  评论(0编辑  收藏  举报