16 回答

林逸舟丶
TA贡献124条经验 获得超28个赞
input为单标签
没有<input></input>的写法,属于错误标签。
<input type...value...>
<input type...value.../>
两者的区别只在于,第二种是遵循xhtml的标准,即采用xml的书写格式。

生活不知眼前的苟且还有车和房子要买
TA贡献1条经验 获得超0个赞
<input />和<input></input>的区别?
如果两个标签之间没有内容:那么久用<input />
如果两个标签之间有内容:那么用<input>What is HTML?</input>

繁青
TA贡献10条经验 获得超11个赞
在 HTML 中,<input> 标签没有结束标签。
在 XHTML 中,<input> 标签必须被正确地关闭。
引自:http://www.imooc.com/qadetail/153410
- 16 回答
- 3 关注
- 12421 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消