html页面中报错:Start tag (input) not closed

html中提示“Start tag () not closed properly, expected ‘>’”
由于最近才学习java,总是在敲代码的过程中遇到各种奇怪的错误,导致看到冒红就害怕。哈哈,所以想尽一切办法消除红色的×。下面是我在写一个模块的修改页中遇到的问题,跟大家分享一下:

html页面中加入<#if>标签之后
html页面中报错:Start tag (input) not closed
会报如下所示错误:
Invalid character used in text string (<#if
(enterpriseInfoVo.entpProperty)==1>checked=“checked”</#if> datatype="*"/> ).
- Start tag () not closed properly, expected ‘>’.

解决办法:
window ->Preferences ->Web -> Validation ->右侧的Elements中寻找Unclosed start tag 以及 Unclosed end tag 将他们后面的error改成warning,这样就不会报错了,变成了警告。

html页面中报错:Start tag (input) not closed
改成:
html页面中报错:Start tag (input) not closed
改完之后变成了如下所示:
html页面中报错:Start tag (input) not closed
如果有更好的办法,还请各位多多指教。