html6

HTML5 概述

HTML5 是 HTML 语言最受欢迎的版本之一,它支持音频和视频、离线存储、移动端、和标签属性等等。还提供了

,
,
这样的标签来帮助开发者更好地组织页面内容。然而 HTML5 规范仍然没有最后定稿,并且它并不是一个真正意义上的语义标记语言。

HTML6 展望

你有没有曾经希望能在 HTML 中使用自定义标签?比如:使用来显示你的网站logo,还有使用来显示工具栏等等。我们经常使用

来组织页面,在 HTML6 里我们希望可以直接使用象这样的自定义标签。

和 XML 一样,HTML6 应该支持 namespace(命名空间),如:xmlns:xhtml=”http://www.w3.org/1999/xhtml”

HTML6 代码样例:

A Look Into HTML6

Heading of main article

Sub-heading of main article

[...]

[...]

The concept of HTML6

Understanding the basics

[...]

This site is © to Anonymous 2014

</html:body>
</html:html>

在上面的代码中,你也许注意到了一些奇怪的标签,它们是 W3C 和 HTML6 规范中在命名空间里定义的标签。例如:负责设定你浏览器的标题栏文字,负责显示图片等等。用户可以自己定义标签以便 JavaScript 和 CSS 识别和处理,这样页面代码会更易读,语义更清晰。

HTML6 APIs

HTML6 的标签前带有命名空间,如:, 等等。

1.

<!DOCTYPE html>
<html:html>// this is equivalent to tag written in previous HTML versions

</html:html>

2. 和 标签一样。

<!DOCTYPE html>
<html:html>
<html:head>

</html:head>
</html:html>

3. 标签类似。</p><p><!DOCTYPE html><br> <html:html><br> <html:head><br> <html:title>A Look Into HTML6</html:title><br> </html:head><br> </html:html></p><p>4. <html:meta> 和 <meta> 标签类似,不同之处在于,在 HTML5 中你只能使用标准的元数据类型,如:”keywords”, “description”, “author”等,而在 HTML6 中你可以使用任何元数据类型。</p><p><!DOCTYPE html><br> <html:html><br> <html:head><br> <html:title>A Look Into HTML6</html:title><br> <html:meta type="description" value="HTML example with namespaces"><br> </html:head><br> </html:html></p><p>5. <html:link> 和 HTML6 之前版本的 <link> 标签类似。</p><p><!DOCTYPE html><br> <html:html><br> <html:head><br> <html:title>A Look Into HTML6</html:title><br> <html:link src="https://coolshell.cn/articles/js/mainfile.js" title="Script" type="text/javascript"><br> </html:head><br> </html:html></p><p>6. <html:body> 和 <body> 标签一样。</p><p><!DOCTYPE html><br> <html:html><br> <html:head><br> <html:title>A Look Into HTML6</html:title><br> </html:head><br> <html:body></p><p></html:body><br> </html:html></p><p>7. <html:a> 和 <a> 标签类似,区别是 <html:a> 只有 “href” 一个属性。</p><p><!DOCTYPE html><br> <html:html><br> <html:head><br> <html:title>A Look Into HTML6</html:title><br> </html:head><br> <html:body><br> <html:a href="http://siteurl">Go to siteurl.com!</html:a><br> </html:body><br> </html:html></p><p>8. <html:button> 和 <button> 及 <input type=”button”> 一样。</p><p><!DOCTYPE html><br> <html:html><br> <html:head><br> <html:title>A Look Into HTML6</html:title><br> </html:head><br> <html:body><br> <html:button>Click Here</html:button><br> </html:body><br> </html:html></p><p>9. <html:media> 涵盖 <img>, <video>, <embed> 等标签的所有功能。<html:media> 的好处是你不用根据不同的媒体文件类型使用不同的标签,媒体的类型由浏览器从文件内容(类型属性,扩展名,和MIME type)中来判断。</p><p><!DOCTYPE html><br> <html:html><br> <html:head><br> <html:title>A Look Into HTML6</html:title><br> </html:head><br> <html:body></p><p><html:media src="https://coolshell.cn/articles/img1/logo.jpg" type="image"></p><p><html:media src="https://coolshell.cn/articles/videos/slide.mov"><br> </html:body><br> </html:html></p><h3>标签类型(Tag types)概述</h3><p>和 HTML5 一样, HTML6 也有两种标签类型:单标签(single tag) 和双标签(double tag)</p><p><html:meta type="author" content="single tag"><br> <html:meta type="author" content="double tag" /></p><p>单标签不需要结束符’/’</p><h3>结语</h3><p>HTML6 规范还未发布,本文原作者 Oscar Godson 只是为我们提供了一个对 HTML6 规范的展望,或者说他希望 HTML6 能够支持的一些新特性。</p><p>原文链接:A Look Into HTML6 – What Is It, and What Does it Have to Offer?</p><p>转载于酷壳CoolShell 无删改 仅以此纪念陈皓(左耳朵耗子)</p></div> <div><div><a href="https://www.hesudu.com/1266.htm" title="Google 需要性爱">Google 需要性爱</a><p>看到一篇趣文Google Needs Sex,翻译过来。 Brad DeLong 给我们写了 两篇关于“Google遇到的麻烦”的文章(墙),这两篇文章基本上是说, 制造网络欺…</p></div><div><a href="https://www.hesudu.com/9MgqD.htm" title="关于 ssl 证书替换的问题,有阿里云运维大佬吗">关于 ssl 证书替换的问题,有阿里云运维大佬吗</a><p>公司运维被优化了,小开发被迫营业需要兼顾下线上运维的活 目前遇到 ssl 证书即将过期问题 请求的路径如下 传统型 clb (负载均衡)-> 两台 nginx ( ecs 服务…</p></div><div><a href="https://www.hesudu.com/rEzcD.htm" title="国内 PHP 卷王是鸟哥">国内 PHP 卷王是鸟哥</a><p>最近学了 python 原生协程 async await 以及 asyncio 库 回头重新看了 php 协程 发现 php 协程实在太垃圾了 好像有个官方文档 提供了大量示例…</p></div></div> <p class="tags"><a href="https://www.hesudu.com/tag/%E9%85%B7%E5%A3%B3/">酷壳</a> <a href="https://www.hesudu.com/tag/CoolShell/">CoolShell</a> <a href="https://www.hesudu.com/tag/%E9%99%88%E7%9A%93/">陈皓</a> <a href="https://www.hesudu.com/tag/%E5%B7%A6%E8%80%B3%E6%9C%B5%E8%80%97%E5%AD%90/">左耳朵耗子</a> <a href="https://www.hesudu.com/tag/%E9%85%B7%E5%A3%B3%E9%99%88%E7%9A%93/">酷壳陈皓</a> <a href="https://www.hesudu.com/tag/web/">web</a> <a href="https://www.hesudu.com/tag/web%E5%BC%80%E5%8F%91/">web开发</a> <a href="https://www.hesudu.com/tag/%E6%8A%80%E6%9C%AF%E8%AF%BB%E7%89%A9/">技术读物</a> <a href="https://www.hesudu.com/tag/html/">html</a> <a href="https://www.hesudu.com/tag/html6/">html6</a> <a href="https://www.hesudu.com/tag/html5/">html5</a></p> </article> <div class="post-near"> <span><a href="https://www.hesudu.com/1512.htm" title="Google Inbox如何跨平台重用代码?">Google Inbox如何跨平台重用代码?</a></span> <span class="you"><a href="https://www.hesudu.com/1514.htm" title="DHH 谈混合移动应用开发">DHH 谈混合移动应用开发</a></span> </div> </div> <div id="secondary" sidebar-fixed> <section class="widget"> <h3 class="ct">近期文章</h3> <ul class="widget-list alan"> <li><a href="https://www.hesudu.com/LvtUZ.htm" title="为啥 vivo iqoo 的 Origin os 把以太网网络共享这个功能删掉了">为啥 vivo iqoo 的 Origin os 把以太网网络共享这个功能删掉了</a></li><li><a href="https://www.hesudu.com/ChfQc.htm" title="求推荐内网监控摄像头方案">求推荐内网监控摄像头方案</a></li><li><a href="https://www.hesudu.com/ibfMS.htm" title="android studio 新建项目编译报错">android studio 新建项目编译报错</a></li><li><a href="https://www.hesudu.com/4bmGg.htm" title="[讨论] AI 是不是正在逐渐培养一代不会编程的“文盲”程序员?">[讨论] AI 是不是正在逐渐培养一代不会编程的“文盲”程序员?</a></li><li><a href="https://www.hesudu.com/sFnF9.htm" title="在多服务系统中,如何对业务数据进行权限校验">在多服务系统中,如何对业务数据进行权限校验</a></li><li><a href="https://www.hesudu.com/X5Yl3.htm" title="群晖怎么让 docker 容器走代理">群晖怎么让 docker 容器走代理</a></li><li><a href="https://www.hesudu.com/437.htm" title="手机内存 64g,现在不够用了,可是扩展的 microsd 也没办法用到程序上,有啥不换手机的好办法吗">手机内存 64g,现在不够用了,可是扩展的 microsd 也没办法用到程序上,有啥不换手机的好办法吗</a></li><li><a href="https://www.hesudu.com/6iSFm.htm" title="比较好奇 ios 的这种记账软件成本那么高,能赚钱吗?">比较好奇 ios 的这种记账软件成本那么高,能赚钱吗?</a></li><li><a href="https://www.hesudu.com/39W5g.htm" title="项目开源一年,终于 3000 star 了,截图纪念。">项目开源一年,终于 3000 star 了,截图纪念。</a></li><li><a href="https://www.hesudu.com/XAV7M.htm" title="Win11 24H2 ,中文版 or 英文版 ?">Win11 24H2 ,中文版 or 英文版 ?</a></li></ul> <img src='https://www.hesudu.com/img/c1.jpg'> </section> <section class="widget"> <h3 class="ct">热门推荐</h3> <ul class="widget-list alan"> <li><a href="https://www.hesudu.com/ahEHe.htm" title="收了个线程撕裂者 2970wx,我该怎么安排他">收了个线程撕裂者 2970wx,我该怎么安排他</a></li><li><a href="https://www.hesudu.com/uUsbc.htm" title="求推荐一些 Follow 订阅">求推荐一些 Follow 订阅</a></li><li><a href="https://www.hesudu.com/KhPNE.htm" title="为什么 AI 生成人物的手指大多都容易出问题呢?">为什么 AI 生成人物的手指大多都容易出问题呢?</a></li><li><a href="https://www.hesudu.com/g0yFm.htm" title="绿联新品私有云发布会,各位怎么看">绿联新品私有云发布会,各位怎么看</a></li><li><a href="https://www.hesudu.com/1195.htm" title="免费电子书列表">免费电子书列表</a></li><li><a href="https://www.hesudu.com/1059.htm" title="Ajax开发利器UIzard">Ajax开发利器UIzard</a></li><li><a href="https://www.hesudu.com/U32oS.htm" title="根据经纬坐标判断是否在一个省份内 或者市内,这有开源的轮子吗?">根据经纬坐标判断是否在一个省份内 或者市内,这有开源的轮子吗?</a></li><li><a href="https://www.hesudu.com/Q8NTu.htm" title="在线尺子网站没一个靠谱的">在线尺子网站没一个靠谱的</a></li><li><a href="https://www.hesudu.com/gJLYU.htm" title="求推荐个 Cursor/vscode 写 Golang 代码的主题">求推荐个 Cursor/vscode 写 Golang 代码的主题</a></li><li><a href="https://www.hesudu.com/7cgOT.htm" title="分享 follow 源,并送出 power 所得邀请码。">分享 follow 源,并送出 power 所得邀请码。</a></li></ul> </section> </div> </div> </div> <footer id="footer"> <div class="container"> <p>2018-2025 © <a href="https://www.hesudu.com/">合速度</a> 合力而为 速度分享</p> </div> </footer> <div id="cornertool"> <ul> <li id="top" class="hidden"></li> </ul> </div> <script src="/img/main.js"></script> </body> </html>