- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
随着 (X)HTML5 规范接近标准化,我更喜欢在适用于勺子式自动工具的任何地方使用微数据,其次是 RDFa,因为微数据的个人感觉与简洁一样受限,其次是使用 XSLT 为我的工作用户提供服务的 microformat2 草案,比如 hAtom2Atom.xsl 虽然谷歌搜索将我发送到 blog.whatwg.org/xhtml5-in-a-nutshell,但臭名昭著的是声称我的问题是垃圾邮件,然后是 www.jenitennison.com/blog/node/165,它似乎禁用了评论,所以如果我在这里不合适,请仍然请指导我。抱歉,Tim Berners-Lee 爵士,我的声誉不足以为语义网添加链接数据标签。
我希望使用 hAtom2Atom.xsl 为使用微格式 hAtom 的网站主页提供联合提要。 XML MIME 类型 application/xhtml+xml 通过我的托管服务提供商控制面板界面为 .xhtml 文件的虚拟目录设置。为了向搜索引擎提供元数据,我想使用 schema.org RDFa,因为使用 http://www.w3.org/TR/2010/WD-xhtml-rdfa-20100422/#document-conformance 成为可能。 .作为马哈拉施特拉邦的居民,我使用 xml:lang="mr-IN"作为我们作为南亚金融之都而流行的国家语言孟买的官方语言是马拉地语,国家是印度,所以我的编码是 UTF-16,所以我的非-英文标签,例如告诉我姓氏正确发音的标题,可以预料地工作。那么下面的标记是否正确 XHTML5+RDFa 1.1?
<?xml version="1.0" encoding="UTF-16"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
version="XHTML+RDFa 1.1"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/1999/xhtml
http://www.w3.org/MarkUp/SCHEMA/xhtml-rdfa-2.xsd"
lang="en"
xml:lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-16"/>
<title xml:lang="mr-IN">चवाथे</title>
<link rel="icon" href="/img/icons/me.ico" type="image/x-icon" />
</head>
<body>
</body>
</html>
最佳答案
这是错误的,但有效!文档类型使其成为比 xhtml5 更旧的 xhtml 实现,这将阻止使用微数据。然而,如果某些东西(如知识共享许可)在最不理想的情况下会被自动化工具忽略,如果它们的标记被转换为微数据,如 http://bnode.org/blog/2010/01/26/microdata-semantic-markup-for-both-rdfers-and-non-rdfers 中所述。 .启用 RDFa 的正确方法是使用 <head>... <link rel="profile" href="http://www.w3.org/profile/html-rdfa-1.1" /> ...</head>
这也允许跳过前缀和属性等属性的 rdf 前缀,但到目前为止似乎没有人 promise 实现 rel="profile"支持,所以很明显 rdf 要么留在 xhtml 或历史 html 中,而不是 html5!如 http://www.w3.org/TR/rdfa-in-html/#additional-rdfa-processing-rules 所述,版本属性也未使用。此外,xmlns 大部分是冗余的,前缀由 http://www.w3.org/2011/rdfa-context/rdfa-1.1.html 给出的初始上下文定义。和 http://www.w3.org/2011/rdfa-context/html-rdfa-1.1
关于semantic-web - XHTML5 UTF-16 微数据 RDFa 1.1 微格式 2 草案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13067715/
有谁知道 xhtml 中选项卡的字符实体是什么? (嗯,如果有的话)... 最佳答案 (X)HTML 对制表符没有特殊支持:它们只是另一个空白字符,无论您是否对它们进行转义。 关于xhtml - XH
我了解根据 HTML 规范,向元素添加自定义属性是无效的。这对 XHTML 也无效吗? 我认为 XHTML 是 XML 家族的一部分,因此是可扩展的。作为可扩展性,使用自定义属性不是可以吗? 戴夫 最
有没有关于如何正确处理 XHTML (1.0 Transitional) 中的空格的信息?似乎 XHTML 不使用标准的 XML 空白处理。 编辑:梅比我对我到底在寻找什么有点不准确。我对元素如何呈现
据我了解,XHTML (1.0, 1.1) 和 XHTML 5 都不需要 DTD。如果这是真的,浏览器将如何区分两者? 我只能假设当浏览器供应商支持 (X)HTML 5 时,所有 XHTML 都将按照
我得到了一个带有 session 范围 bean 的 xhtml 页面。现在我想在另一个 html 页面中两次使用此页面,一次在屏幕左侧,一次在屏幕右侧。如果我包含它,它指的是同一个 bean,我怎样
就SEO而言,从客户端角度来看,我应该使用XHTML 1.0 Transitional还是XHTML 1.0 Strict? 为什么有些人仍然使用Transitional? 如果我们使用“严格过渡”,
我以前只用 p和 span元素...但我一直在插入使用正确的元素,这是我之前没有真正考虑过关于推荐的事情。 这是我想到的... I love your products! Jim Testimo
所有现代浏览器都理解 HTML,所以除了在键盘最右侧编写更多字符之外,兼容 XHTML 的意义何在。 最佳答案 没有一点我能想到的。 W3C 已经取消了 XHTML 2.0,尽管应该有一个 XHTML
我制作了一个 Windows 图标 (*.ico) 并将其命名为 favicon,它是 16 x 16 和 16 种颜色...我已将其包含在链接标签中 但是加载不正确 how do I add a f
我有一个问题: 在 Lift 网络框架 (Scala) 版本中。我得到: Message: java.util.NoSuchElementException scala.RandomAccessS
我已经编写了有效的 XHTML 1.0 Transitional 代码。我想添加社交分享按钮(twitter、facebook 和 google+),但所有这些按钮都使我的代码无效。有什么解决办法吗?
我想知道在 XHTML 中标记科学名称的最佳方法。 This answer说我应该使用 元素,我不太赞成,当然,除非它是正确的元素。 我可以使用 ,但鉴于 HTML 的第一个用途是标记科学文档,我想
角色属性是否有定义的值,如果有,您能说出它们是什么吗? 或者我可以为角色属性创建自己的值吗?它们区分大小写吗?它们必须是字母吗?可以有数字吗? 或者您可以同时拥有定义的值和用户创建的值。 最佳答案 快
分别阅读两者,看起来都一样,html+xml+javascript。 那和有什么区别?有没有? 最佳答案 XHTML是 w3c标准,一种也严格符合 XML 的 HTML 形式。 DHTML是一个很大程
在使用 XSL 将 XHTML 转换为 XHTML 时,我遇到了 namespace 问题。考虑作为示例输入: Test Remove this 然后
我有以下代码使用 Text.XHtml.Strict 库在 Haskell 中生成一个包含一系列带有 id 和类的 div 的空白 html 页面: module Main where import
我对 IE 的 XHTML 兼容性进行了激烈的辩论。唯一的问题是,我不确定这家伙是不是在挑衅。 从本质上讲,他声称 IE 完全不兼容 XHTML,并且无论使用何种浏览器,具有定义的 XHTML 文档类
我已经为此奋斗了一段时间,但我什至无法弄清楚为什么它不起作用。以这个简单的 XHTML 测试源为例: foobar
虽然不推荐使用 target="_blank",但为什么 W3C 验证器没有给出关于此的错误?您可以在 validator 中粘贴并检查此代码: Untitled Document Li
是否有可能使 anchor 链接内部没有具有背景图像和固定尺寸的文本,并且仍然适合SEO? CSS示例: a{display:block;width:50px;height:20px;backgrou
我是一名优秀的程序员,十分优秀!