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/423.htm" title="写 C++代码有感">写 C++代码有感</a><p>自写代码以来,之前一直在用 Golang 、Python 写业务代码,感觉使用起来很方便易用;最近的工作写编辑引擎,开始使用 C++写代码,还是使用的 C++17 语法,恶补 …</p></div><div><a href="https://www.hesudu.com/1256.htm" title="流体力学的演示">流体力学的演示</a><p>某人用Java搞了一个流体力学的演示。 http://grantkot.com/MPM/Liquid.html 不过,这仅仅是个开始。某同学将其发布上了reddit.com,…</p></div><div><a href="https://www.hesudu.com/hDrNF.htm" title="outlook 邮箱居然允许伪装成另外一个邮箱">outlook 邮箱居然允许伪装成另外一个邮箱</a><p>由于最近在折腾邮件服务器,正好想测试一下自己以前注册的其他几个邮箱。 发现 outlook 邮箱在发信时,居然可以把发信人设置为和 outlook 帐号关联的邮箱帐号。 比如在…</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/Am3a9.htm" title="求助,红米, iQOO, Realme 怎么选?">求助,红米, iQOO, Realme 怎么选?</a></li><li><a href="https://www.hesudu.com/WU3pl.htm" title="初学 React,要选择哪些工具/框架/技术来学习?">初学 React,要选择哪些工具/框架/技术来学习?</a></li><li><a href="https://www.hesudu.com/KjFMU.htm" title="QQ 邮箱不要 FACE 啊">QQ 邮箱不要 FACE 啊</a></li><li><a href="https://www.hesudu.com/480.htm" title="Linux 字体为什么有时候看着这么别扭">Linux 字体为什么有时候看着这么别扭</a></li><li><a href="https://www.hesudu.com/yiUVr.htm" title="Python 3.12 稳定版发布啦,哪个改动最有吸引力?">Python 3.12 稳定版发布啦,哪个改动最有吸引力?</a></li><li><a href="https://www.hesudu.com/WqftJ.htm" title="求推荐在公司当热点+备机的安卓手机,红米 Note14Pro+是否合适?">求推荐在公司当热点+备机的安卓手机,红米 Note14Pro+是否合适?</a></li><li><a href="https://www.hesudu.com/cwLPD.htm" title="为什么 windows11 安装解压软件,无法注册到右键菜单中">为什么 windows11 安装解压软件,无法注册到右键菜单中</a></li><li><a href="https://www.hesudu.com/1264.htm" title="一些有意思的网站和贴子">一些有意思的网站和贴子</a></li><li><a href="https://www.hesudu.com/6EXp1.htm" title="有没有 win11 上刷微博神器?">有没有 win11 上刷微博神器?</a></li><li><a href="https://www.hesudu.com/FWp3u.htm" title="google play 账号被封了,因为““政策覆盖范围”政策”">google play 账号被封了,因为““政策覆盖范围”政策”</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/165.htm" title="估计是老问题了, vue 在组件中 created 里用 ajax 或者 axios 请求数据,但是数据在 mounted 前没返回">估计是老问题了, vue 在组件中 created 里用 ajax 或者 axios 请求数据,但是数据在 mounted 前没返回</a></li><li><a href="https://www.hesudu.com/ZQqsA.htm" title="[AI] 为啥现在一边喊着 AI 代替人类,另一边各种场景 AI 落地却困难重重">[AI] 为啥现在一边喊着 AI 代替人类,另一边各种场景 AI 落地却困难重重</a></li><li><a href="https://www.hesudu.com/MW7Fj.htm" title="去除 snap 的 ubuntu">去除 snap 的 ubuntu</a></li><li><a href="https://www.hesudu.com/743.htm" title="请问选 Unity 还是 Godot">请问选 Unity 还是 Godot</a></li><li><a href="https://www.hesudu.com/261.htm" title="预编译了一些工具的静态链接二进制,有需自取">预编译了一些工具的静态链接二进制,有需自取</a></li><li><a href="https://www.hesudu.com/154.htm" title="电脑有没有必要上 64G 内存呢">电脑有没有必要上 64G 内存呢</a></li><li><a href="https://www.hesudu.com/zYjng.htm" title="OPPO findx8 mini 和 VIVO x200Pro mini">OPPO findx8 mini 和 VIVO x200Pro mini</a></li><li><a href="https://www.hesudu.com/iRsti.htm" title="也是醉了,从 pip 学习到 pipenv,再切换到 poetry,最后还是用回 pip">也是醉了,从 pip 学习到 pipenv,再切换到 poetry,最后还是用回 pip</a></li><li><a href="https://www.hesudu.com/i7wOR.htm" title="想换一个安卓手机">想换一个安卓手机</a></li><li><a href="https://www.hesudu.com/VVqEw.htm" title="Windows10 已经成为了最好的 Linux 发行版">Windows10 已经成为了最好的 Linux 发行版</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>