HTML 5需要“< html xmlns =" http://www.w3.org/1999/xhtml">" [英] Does HTML 5 need `<html xmlns="http://www.w3.org/1999/xhtml">`

查看:142
本文介绍了HTML 5需要“< html xmlns =" http://www.w3.org/1999/xhtml">"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编写html 5文档类型时,你是否想要包含< html xmlns =http://www.w3.org/1999/xhtml> 和以前使用HTML4文档类型时一样,或者应该使用不同的xhtml?
$ b

When writing a html 5 doctype, do you suppose to include the <html xmlns="http://www.w3.org/1999/xhtml"> as you did when previously using HTML4 doctype or should a different xhtml be used?

<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml">


推荐答案

不,您不需要包含它。这应该就够了。

No, you don't need to include it. This should be enough.

 <!doctype html>
 <html> 

这篇关于HTML 5需要“&lt; html xmlns =&quot; http://www.w3.org/1999/xhtml&quot;&gt;&quot;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆