跳转到主内容
趣航编程网 - 趣学编程,启航技术之路!

html6的展望与代码

html 5 是 html 语言最受欢迎的版本之一,它支持音频和视频、离线存储、移动端、和标签属性等等。还提供了
, 
, 
这样的标签来帮助开发者更好地组织页面内容。然而 html5 规范仍然没有最后定稿,并且它并不是一个真正意义上的语义标记语言。 HTML6 展望 你有没有曾经希望能在 HTML 中使用自定义标签?比如:使用来显示你的网站logo,还有使用来显示工具栏等等。我们经常使用和来组织页面,在 HTML6 里我们希望可以直接使用象和这样的自定义标签。 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
在上面的代码中,你也许注意到了一些奇怪的标签,它们是 W3C 和 HTML6 规范中在命名空间里定义的标签。例如:负责设定你浏览器的标题栏文字,负责显示图片等等。用户可以自己定义标签以便 JavaScript 和 CSS 识别和处理,这样页面代码会更易读,语义更清晰。 HTML6 APIs HTML6 的标签前带有命名空间,如:, 等等。 1. 
// this is equivalent to tag written in previous HTML versions
2.  和  标签一样。 立即学习 “ 前端免费学习笔记(深入) ”;
3.  和  标签类似。 <div class="cxy-code-block"><button class="cxy-code-copy" aria-label="复制代码">复制</button><code class="language-auto"><!DOCTYPE html> <html:html> <html:head> <html:title>A Look Into HTML6</html:title> </html:head> </html:html></code></div> 4. <html:meta> 和 <meta> 标签类似,不同之处在于,在 HTML5 中你只能使用标准的元数据类型,如:”keywords”, “description”, “author”等,而在 HTML6 中你可以使用任何元数据类型。 <div class="cxy-code-block"><button class="cxy-code-copy" aria-label="复制代码">复制</button><code class="language-auto"><!DOCTYPE html> <html:html> <html:head> <html:title>A Look Into HTML6</html:title> <html:meta type="description" value="HTML example with namespaces"> </html:head> </html:html></code></div> 5. <html:link> 和 HTML6 之前版本的 <link> 标签类似。 使用HTML,CSS,JavaScript开发Android应用程序 英文文字pdf版附源文件 如果你了解HTML,CSS和JavaScript,您已经拥有所需的工具开发Android应用程序。本动手本书展示了如何使用这些开源web标准设计和建造,可适应任何Android设备的应用程序 - 无需使用Java。您将学习如何创建一个在您选择的平台的Andr​​oid友好的网络应用程序,然后转换与自由PhoneGap框架到一个原生的Andr​​oid应用程序。了解为什么设备无关的移动应用是未来的潮流,并开始构建应用程序,提供更 下载 <div class="cxy-code-block"><button class="cxy-code-copy" aria-label="复制代码">复制</button><code class="language-auto"><!DOCTYPE html> <html:html> <html:head> <html:title>A Look Into HTML6</html:title> <html:link src="js/mainfile.js" title="Script" type="text/javascript"> </html:head> </html:html></code></div> 6. <html:body> 和 <body> 标签一样。 <div class="cxy-code-block"><button class="cxy-code-copy" aria-label="复制代码">复制</button><code class="language-auto"><!DOCTYPE html> <html:html> <html:head> <html:title>A Look Into HTML6</html:title> </html:head> <html:body> <!-- This is where your website content is placed --> </html:body> </html:html></code></div> 7. <html:a> 和 <a> 标签类似,区别是 <html:a> 只有 “href” 一个属性。 <div class="cxy-code-block"><button class="cxy-code-copy" aria-label="复制代码">复制</button><code class="language-auto"><!DOCTYPE html> <html:html> <html:head> <html:title>A Look Into HTML6</html:title> </html:head> <html:body> <html:a href="http://siteurl">Go to siteurl.com!</html:a> </html:body> </html:html></code></div> 8. <html:button> 和 <button> 及 <input type=”button”> 一样。 <div class="cxy-code-block"><button class="cxy-code-copy" aria-label="复制代码">复制</button><code class="language-auto"><!DOCTYPE html> <html:html> <html:head> <html:title>A Look Into HTML6</html:title> </html:head> <html:body> <html:button>Click Here</html:button> </html:body> </html:html></code></div> 9. <html:media> 涵盖 , <video>, <embed> 等标签的所有功能。<html:media> 的好处是你不用根据不同的媒体文件类型使用不同的标签,媒体的类型由浏览器从文件内容(类型属性,扩展名,和MIME type)中来判断。 <div class="cxy-code-block"><button class="cxy-code-copy" aria-label="复制代码">复制</button><code class="language-auto"><!DOCTYPE html> <html:html> <html:head> <html:title>A Look Into HTML6</html:title> </html:head> <html:body> <!-- Image would come here --> <html:media src="img1/logo.jpg" type="image"> <!-- Video doesn't need a type --> <html:media src="videos/slide.mov"> </html:body> </html:html></code></div> 标签类型(Tag types)概述 和 HTML5 一样, HTML6 也有两种标签类型:单标签(single tag) 和双标签(double tag) <div class="cxy-code-block"><button class="cxy-code-copy" aria-label="复制代码">复制</button><code class="language-auto"><html:meta type="author" content="single tag"> <html:meta type="author" content="double tag" /></code></div> 单标签不需要结束符’/’ 结语 HTML6 规范还未发布,本文原作者Oscar Godson 只是为我们提供了一个对 HTML6 规范的展望,或者说他希望 HTML6 能够支持的一些新特性。 </div> <!-- 文章导航 --> <nav class="cxy-article-nav" aria-label="文章导航"> <a href="https://www.vqhf.com/article/43715.html" class="cxy-article-nav-link cxy-article-nav-prev"> <span>‹</span> <div> <div class="cxy-article-nav-label">上一篇</div> <div class="cxy-article-nav-title">jquery 简单的banner轮播实例</div> </div> </a> <a href="https://www.vqhf.com/article/43775.html" class="cxy-article-nav-link cxy-article-nav-next"> <div> <div class="cxy-article-nav-label">下一篇</div> <div class="cxy-article-nav-title">typescript 类型声明</div> </div> <span>›</span> </a> </nav> </div> </article> <!-- 相关文章列表 --> <section class="cxy-content-section" style="margin-top: 20px;"> <h2 class="cxy-widget-title" style="margin-bottom: 20px;">相关文章</h2> <ul class="cxy-article-list"> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43715.html" class="cxy-article-link">jquery 简单的banner轮播实例</a> <div class="cxy-article-meta">2026-11-18</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43707.html" class="cxy-article-link">HTML怎么做苹果全屏配置_HTML apple-mobile-web-app全屏【基础】</a> <div class="cxy-article-meta">2026-11-18</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43701.html" class="cxy-article-link">利用vue如何实现图片滚动?</a> <div class="cxy-article-meta">2026-11-18</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43684.html" class="cxy-article-link">html中的wbr标签是什么?</a> <div class="cxy-article-meta">2026-11-18</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43640.html" class="cxy-article-link">jQuery中trigger()方法用法实例</a> <div class="cxy-article-meta">2026-11-18</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43775.html" class="cxy-article-link">typescript 类型声明</a> <div class="cxy-article-meta">2026-11-19</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43778.html" class="cxy-article-link">Laravel集成Pusher实现WebSocket教程 PHP实时推送插件使用方法</a> <div class="cxy-article-meta">2026-11-19</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43779.html" class="cxy-article-link">JS清除文本框内容离开在恢复及鼠标离开文本框时触发js的方法_javascript技巧</a> <div class="cxy-article-meta">2026-11-19</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43781.html" class="cxy-article-link">文件上传_html/css_WEB-ITnose</a> <div class="cxy-article-meta">2026-11-19</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43782.html" class="cxy-article-link">javascript有哪几种书写位置</a> <div class="cxy-article-meta">2026-11-19</div> </li> </ul> </section> </div> <!-- 右侧边栏 --> <aside class="cxy-sidebar cxy-sidebar-right" aria-label="侧边栏"> <!-- 推荐阅读 --> <div class="cxy-widget"> <h3 class="cxy-widget-title">推荐阅读</h3> <div class="cxy-recommend-grid"> <a href="https://www.vqhf.com/article/43808.html" class="cxy-recommend-item"> <div class="cxy-recommend-thumb"> <img src="https://www.vqhf.com/static/v0/images/article-6.jpg" alt="HTML怎么做BEM命名_html BEM命名方法论使用教程【经验分享】"> </div> <div class="cxy-recommend-title">HTML怎么做BEM命名_html BEM命名方法论使用教程【经验分享】</div> </a> <a href="https://www.vqhf.com/article/43802.html" class="cxy-recommend-item"> <div class="cxy-recommend-thumb"> <img src="https://www.vqhf.com/static/v0/images/article-6.jpg" alt="index.html如何集成搜索建议功能?"> </div> <div class="cxy-recommend-title">index.html如何集成搜索建议功能?</div> </a> <a href="https://www.vqhf.com/article/43795.html" class="cxy-recommend-item"> <div class="cxy-recommend-thumb"> <img src="https://www.vqhf.com/static/v0/images/article-6.jpg" alt="css文字大小变化动画不流畅怎么办_使用transition-font-size和ease函数优化"> </div> <div class="cxy-recommend-title">css文字大小变化动画不流畅怎么办_使用transition-font-size和ease函数优化</div> </a> <a href="https://www.vqhf.com/article/43784.html" class="cxy-recommend-item"> <div class="cxy-recommend-thumb"> <img src="https://www.vqhf.com/static/v0/images/article-6.jpg" alt="如何在 JavaScript 中通过连接数组的元素来创建字符串?"> </div> <div class="cxy-recommend-title">如何在 JavaScript 中通过连接数组的元素来创建字符串?</div> </a> </div> </div> <!-- 最新文章 --> <div class="cxy-widget"> <h3 class="cxy-widget-title">最新文章</h3> <ul class="cxy-article-list"> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43808.html" class="cxy-article-link">HTML怎么做BEM命名_html BEM命名方法论使用教程【经验分享】</a> <div class="cxy-article-meta">2026-11-19</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43802.html" class="cxy-article-link">index.html如何集成搜索建议功能?</a> <div class="cxy-article-meta">2026-11-19</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43795.html" class="cxy-article-link">css文字大小变化动画不流畅怎么办_使用transition-font-size和ease函数优化</a> <div class="cxy-article-meta">2026-11-19</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43784.html" class="cxy-article-link">如何在 JavaScript 中通过连接数组的元素来创建字符串?</a> <div class="cxy-article-meta">2026-11-19</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43782.html" class="cxy-article-link">javascript有哪几种书写位置</a> <div class="cxy-article-meta">2026-11-19</div> </li> <li class="cxy-article-item"> <a href="https://www.vqhf.com/article/43781.html" class="cxy-article-link">文件上传_html/css_WEB-ITnose</a> <div class="cxy-article-meta">2026-11-19</div> </li> </ul> </div> <!-- 热门标签 --> <div class="cxy-widget"> <h3 class="cxy-widget-title">热门标签</h3> <div class="cxy-article-tag-list"> <a href="https://www.vqhf.com/tag/961" class="cxy-article-tag-item">html</a> </div> </div> </aside> </div> </div> </main> <!-- 页脚 --> <footer class="cxy-footer"> <div class="cxy-container"> <div class="cxy-footer-links" style="justify-content: center;"> <a href="https://www.vqhf.com/22.html" class="cxy-footer-link">免责声明</a> <a href="https://www.vqhf.com/23.html" class="cxy-footer-link">关于我们</a> <a href="https://www.vqhf.com/24.html" class="cxy-footer-link">联系我们</a> <a href="https://www.vqhf.com/25.html" class="cxy-footer-link">投诉删除</a> <a href="https://www.vqhf.com/26.html" class="cxy-footer-link">投稿须知</a> </div> <div class="cxy-footer-copyright" style="text-align: center; margin-top: 20px;"> Copyright 2026 趣航编程网 版权所有 <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank" style="color: inherit;">黔ICP备2025063733号</a> </div> <div style="text-align: center; margin-top: 10px; font-size: 12px; color: #999;">免责声明:本站信息来源于网络,仅供学习使用,版权归原作者所有,如有不愿意被转载的情况,请联系QQ:182111886,通知我们删除已转载的信息。</div> </div> </footer> <!-- 返回顶部按钮 --> <button class="cxy-back-to-top" id="backToTop" aria-label="返回顶部">⇧</button> <!-- 公共脚本 --> <script src="https://www.vqhf.com/static/v0/js/common.js"></script> <div class="hide"> </div> </body> <script> (function() { var al = document.createElement("script"); al.src = "/api/log?action=views&code=200&id=43772&path=http%3A%2F%2Fwww.vqhf.com%2Farticle%2F43772.html&type=archive&nonce="+Date.now(); document.body.appendChild(al); })(); </script> </html>