首页 > 其他 > 详细

Tag (input) should be an empty-element tag.

时间:2018-11-18 18:38:08      阅读:149      评论:0      收藏:0      [点我收藏+]

因为:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">  
XHTML 对网页标签要求比较严格(相对HTML),必须规范化书写。

所以<input type="password" name="password" id="password">
改成<input type="password" name="password" id="password" />

Tag (input) should be an empty-element tag.

原文:https://www.cnblogs.com/ltb6w/p/9978721.html

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!