小编ThW*_*ThW的帖子

HTML5中“xmlns:v=urn:schemas-microsoft-com”是什么意思

我碰巧找到了标题描述的句子“xmlns:v=urn:schemas-microsoft-com”

这里是大致的来源。

<!--[if gt IE 8]><!DOCTYPE html><!--<![endif]-->
<!DOCTYPE html><!--<![endif]-->
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><br>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=Edge">
        <meta name="viewport" content="user-scalable=0,target-densitydpi=device-dpi">
        ...
    </head>
    <body>
        ...
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

据我所知 xmlns 是模式,可以说是元数据。如果 body 部分中有某个元素可用,则该元素的元数据存在于“schemas.microsft.com”中

如果我使用“microsoft”架构开发html页面,则正文部分中使用的所有元素都将由“microsoft”引用,或者,如果我使用其他架构,例如“google”(我不知道这是否真的存在)所有元素也一样。

这是我的问题首先,如果我同时使用存在于“microsoft”和“google”模式中的表标记,Chrome 浏览器会以不同的方式解释上下文吗?所以有不同的看法?

其次,如果省略 xmlns 将默认使用什么样的模式?

html xml

5
推荐指数
1
解决办法
3万
查看次数

标签 统计

html ×1

xml ×1