HTML6 初探 — 你没看错,是6不是5

HTML5 概述

专注于为中小企业提供网站设计、网站建设服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业泽库免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了上千家企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。

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

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

HTML6 展望

你有没有曾经希望能在 HTML 中使用自定义标签?比如:使用来显示你的网站logo,还有使用来显示工具栏等等。我们经常使用来组织页面,在 HTML6 里我们希望可以直接使用象这样的自定义标签。

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

HTML6 代码样例:

 
 
  1.  
  2.  
  3.   
  4.  
  5.   
  6.  
  7.  A Look Into HTML6 
  8.  
  9.   
  10.  
  11.   
  12.  
  13.   
  14.  
  15.   
  16.  
  17.   
  18.  
  19.   
  20.  
  21.  
     
  22.  
  23.   
  24.  
  25.   
  26.  
  27.   
  28.  
  29.  
  30.  
  31.  a1 
  32.  
  33.  a2 
  34.  
  35.   
  36.  
  37.  
 
  •  
  •   
  •  
  •  
     
  •  
  •  

    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. 

     
     
    1.  
    2.  
    3.  // this is equivalent to  tag written in previous HTML versions 
    4.  
    5.   
    6.  
    7.   

    2.  和  标签一样。

     
     
    1.  
    2.  
    3.   
    4.  
    5.   
    6.  
    7.   
    8.  
    9.   
    10.  
    11.   

    3.  和  标签类似。</p><pre> <ol> <li><!DOCTYPE html> </li> <li> </li> <li> <html:html> </li> <li> </li> <li> <html:head> </li> <li> </li> <li> <html:title>A Look Into HTML6</html:title> </li> <li> </li> <li> </html:head> </li> <li> </li> <li> </html:html> </li> </ol></pre><p>4. <html:meta> 和 <meta> 标签类似,不同之处在于,在 HTML5 中你只能使用标准的元数据类型,如:”keywords”, “description”, “author”等,而在 HTML6 中你可以使用任何元数据类型。</p><pre> <ol> <li><!DOCTYPE html> </li> <li> </li> <li> <html:html> </li> <li> </li> <li> <html:head> </li> <li> </li> <li> <html:title>A Look Into HTML6</html:title> </li> <li> </li> <li> <html:meta type="description" value="HTML example with namespaces"> </li> <li> </li> <li> </html:head> </li> <li> </li> <li> </html:html> </li> </ol></pre><p>5. <html:link> 和 HTML6 之前版本的 <link> 标签类似。</p><pre> <ol> <li><!DOCTYPE html> </li> <li> </li> <li> <html:html> </li> <li> </li> <li> <html:head> </li> <li> </li> <li> <html:title>A Look Into HTML6</html:title> </li> <li> </li> <li> <html:link src="js/mainfile.js" title="Script" type="text/javascript"> </li> <li> </li> <li> </html:head> </li> <li> </li> <li> </html:html> </li> </ol></pre><p>6. <html:body> 和 <body> 标签一样。</p><pre> <ol> <li><!DOCTYPE html> </li> <li> </li> <li> <html:html> </li> <li> </li> <li> <html:head> </li> <li> </li> <li> <html:title>A Look Into HTML6</html:title> </li> <li> </li> <li> </html:head> </li> <li> </li> <li> <html:body> </li> <li> </li> <li> <!-- This is where your website content is placed --> </li> <li> </li> <li> </html:body> </li> <li> </li> <li> </html:html> </li> </ol></pre><p>7. <html:a> 和 <a> 标签类似,区别是 <html:a> 只有 “href” 一个属性。</p><pre> <ol> <li><!DOCTYPE html> </li> <li> </li> <li> <html:html> </li> <li> </li> <li> <html:head> </li> <li> </li> <li> <html:title>A Look Into HTML6</html:title> </li> <li> </li> <li> </html:head> </li> <li> </li> <li> <html:body> </li> <li> </li> <li> <html:a href="http://siteurl">Go to siteurl.com!</html:a> </li> <li> </li> <li> </html:body> </li> <li> </li> <li> </html:html> </li> </ol></pre><p>8. <html:button> 和 <button> 及 <input type=”button”> 一样。</p><pre> <ol> <li><!DOCTYPE html> </li> <li> </li> <li> <html:html> </li> <li> </li> <li> <html:head> </li> <li> </li> <li> <html:title>A Look Into HTML6</html:title> </li> <li> </li> <li> </html:head> </li> <li> </li> <li> <html:body> </li> <li> </li> <li> <html:button>Click Here</html:button> </li> <li> </li> <li> </html:body> </li> <li> </li> <li> </html:html> </li> </ol></pre><p>9. <html:media> 涵盖 <img>, <video>, <embed> 等标签的所有功能。<html:media> 的好处是你不用根据不同的媒体文件类型使用不同的标签,媒体的类型由浏览器从文件内容(类型属性,扩展名,和MIME type)中来判断。</p><pre> <ol> <li><!DOCTYPE html> </li> <li> </li> <li> <html:html> </li> <li> </li> <li> <html:head> </li> <li> </li> <li> <html:title>A Look Into HTML6</html:title> </li> <li> </li> <li> </html:head> </li> <li> </li> <li> <html:body> </li> <li> </li> <li> <!-- Image would come here --> </li> <li> </li> <li> <html:media src="img1/logo.jpg" type="image"> </li> <li> </li> <li> <!-- Video doesn't need a type --> </li> <li> </li> <li> <html:media src="videos/slide.mov"> </li> <li> </li> <li> </html:body> </li> <li> </li> <li> </html:html> </li> </ol></pre><p><strong>标签类型(Tag types)概述</strong></p><p>和 HTML5 一样, HTML6 也有两种标签类型:单标签(single tag) 和双标签(double tag)</p><pre> <ol> <li><html:meta type="author" content="single tag"> </li> <li> </li> <li> <html:meta type="author" content="double tag" /> </li> </ol></pre><p>单标签不需要结束符’/’</p><p><strong>结语</strong></p><p>HTML6 规范还未发布,本文原作者Oscar Godson 只是为我们提供了一个对 HTML6 规范的展望,或者说他希望 HTML6 能够支持的一些新特性。</p> <p> 分享题目:<a href="http://www.csdahua.cn/qtweb/news43/157893.html">HTML6 初探 — 你没看错,是6不是5</a> <br> 网页路径:<a href="http://www.csdahua.cn/qtweb/news43/157893.html">http://www.csdahua.cn/qtweb/news43/157893.html</a> </p> <p> 网站建设、网络推广公司-快上网,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等 </p> <p class="adpic"> <a href="https://www.cdcxhl.com/service/ad.html" target="_blank" class="ad">广告</a> <a href="" target="_blank" class="adimg"><img src=""></a> </p> <p class="copy"> 声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: <a href="http://www.csdahua.cn/" target="_blank">快上网</a> </p> </div> <div class="newsmorelb"> <p>成都快上网为您推荐相关内容</p> <ul> <li> <a href="/qtweb/news42/157892.html">游戏开发者应关注游戏中的道德评判标准</a> </li><li> <a href="/qtweb/news41/157891.html">面试突击:为什么ConcurrentHashMap是线程安全的?</a> </li><li> <a href="/qtweb/news40/157890.html">创新互联less教程:Less导入指令</a> </li><li> <a href="/qtweb/news39/157889.html">还在用幕布备案?小程序扫一扫,轻松完成电子化核验!(幕布备案照片怎么拍)</a> </li><li> <a href="/qtweb/news38/157888.html">云服务器ping不通本地ip</a> </li><li> <a href="/qtweb/news37/157887.html">WordPress主题开发入门基础教程</a> </li><li> <a href="/qtweb/news36/157886.html">Spring框架人气暴涨</a> </li><li> <a href="/qtweb/news35/157885.html">巧影制作视频教程,巧影画中画制作视频教程_巧影入门制作视频教程</a> </li><li> <a href="/qtweb/news34/157884.html">麻烦问下mPaaS中不支持12以前系统,包含12吗?</a> </li> </ul> </div> </div> <div class="col-lg-3 noneb"> <div class="bkright" style="margin-top: 0"> <p><a href="https://www.cdcxhl.com/news/idctuoguan/">服务器托管知识</a></p> <ul> <li> <a class="text_overflow" href="/qtweb/news31/209931.html">香港服务器选租用还是托管?怎么判断?</a> </li><li> <a class="text_overflow" href="/qtweb/news6/469456.html">MSSQL转MySQL数据库记录的实际操作</a> </li><li> <a class="text_overflow" href="/qtweb/news25/524125.html">JavaScript弹出层和背景变暗代码实现</a> </li><li> <a class="text_overflow" href="/qtweb/news1/8201.html">php英文啥意思</a> </li><li> <a class="text_overflow" href="/qtweb/news7/13957.html">Redis高手用的内存数据库(redis算是内存数据库)</a> </li><li> <a class="text_overflow" href="/qtweb/news47/10047.html">海外域名预订的时间过了怎么还是显示在预定中</a> </li><li> <a class="text_overflow" href="/qtweb/news34/468134.html">创新互联百度小程序教程:swan.addEventOnCalendar</a> </li><li> <a class="text_overflow" href="/qtweb/news0/164700.html">html如何给url加密</a> </li><li> <a class="text_overflow" href="/qtweb/news42/136242.html">租用香港ip比较多的站群选择哪家比较不错</a> </li><li> <a class="text_overflow" href="/qtweb/news36/323636.html">从硬盘安装Linux系统:简单易行的操作指南(从硬盘安装linux系统)</a> </li><li> <a class="text_overflow" href="/qtweb/news42/376192.html">redis性能瓶颈会是哪些?windows停止redis命令</a> </li><li> <a class="text_overflow" href="/qtweb/news18/201768.html">windowstogo断开U盘?()</a> </li><li> <a class="text_overflow" href="/qtweb/news40/504390.html">利用路由器如何共享网络打印机</a> </li><li> <a class="text_overflow" href="/qtweb/news18/120518.html">b25主板可以直接安装win7吗?b250主板装windows7</a> </li><li> <a class="text_overflow" href="/qtweb/news24/341924.html">域名到期查询是什么,了解域名到期查询的重要性</a> </li> </ul> </div> <div class="bkright tag"> <p><a href="https://www.cdcxhl.com/hangye/" target="_blank">行业网站建设</a></p> <ul> <li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/rxfhw/" target="_blank">柔性防护网</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/shidiao/" target="_blank">石雕</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/jiaquan/" target="_blank">除甲醛</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/hangkongxiang/" target="_blank">航空箱</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/wsjgd/" target="_blank">卫生间隔断</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/ggzz/" target="_blank">广告制作</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/bolimo/" target="_blank">玻璃贴膜</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/jbgc/" target="_blank">搅拌罐车</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/hntjbz/" target="_blank">混凝土搅拌站</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/bangongkongjian/" target="_blank">办公空间设计</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/menchuang/" target="_blank">门窗定制</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/pe/" target="_blank">PE包装袋</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/ggsj/" target="_blank">广告设计</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/hldzj/" target="_blank">护栏打桩机</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/yupeng/" target="_blank">雨棚定制</a> </li><li class="col-lg-6 col-md-6 col-sm-6 col-xs-6"> <a href="https://www.cdcxhl.com/hangye/zhixiang/" target="_blank">纸箱</a> </li> </ul> </div> </div> </div> <div class="carousel-inner linkbg" style="background: #fff"> <div class="container"> <a href="https://www.cdxwcx.com/jifang/xibuxinxi.html" target="_blank">西部信息服务器托管</a>    <a href="http://www.cxjianzhan.com/mobile/" target="_blank">wap网站制作</a>    <a href="http://seo.cdkjz.cn/seo/" target="_blank">网站SEO优化</a>    <a href="http://chengdu.xwcx.net/mobile/" target="_blank">成都手机网站报价</a>    <a href="http://www.wjzwz.com/" target="_blank">温江网站建设</a>    <a href="https://www.cdxwcx.com/jifang/yaan.html" target="_blank">雅安电信机房</a>    <a href="https://www.cdxwcx.com/tuiguang/weibo.html" target="_blank">微博营销</a>    <a href="https://www.cdcxhl.cn/ " target="_blank">腾讯云香港虚拟主机</a>    <a href="http://www.cdpanxi.cn/" target="_blank">成都活动策划</a>    <a href="http://chengdu.cdcxhl.com/xcx/" target="_blank">微信小程序开发</a>    <a href="https://www.cdcxhl.com/gaiban/" target="_blank">网站改版</a>    <a href="http://www.cdhuace.com/vi.html" target="_blank">VI设计</a>    <a href="https://www.xwcx.net/" target="_blank">服务器托管</a>    <a href="http://www.cdhuace.com/faguangzi/bfg.html" target="_blank">背发光字</a>    <a href="http://www.ncjike.com/" target="_blank">营山产后护理服务</a>    <a href="http://www.pzhzwz.com/" target="_blank">攀枝花网站设计</a>    <a href="https://www.cdcxhl.cn/ " target="_blank">香港空间</a>    <a href="http://www.myzitong.com/" target="_blank">梓潼做网站</a>    <a href="https://www.cdxwcx.com/city/chongzhou/" target="_blank">崇州网站建设</a>    <a href="http://m.cdcxhl.com/" target="_blank">成都网站设计</a>     </div> </div> <footer> <div class="carousel-inner footjz"> <div class="container"> <i class="icon iconfont zbw"></i> 高品质定制 <i class="icon iconfont"></i> 跨终端自动兼容 <i class="icon iconfont"></i> 节约开发成本 <i class="icon iconfont"></i> 开发周期短 <i class="icon iconfont"></i> 一体化服务 <button type="button" class="btn btn-default btn-lg" onClick="window.location.href='tencent://message/?uin=631063699&Site=&Menu=yes'"> 立即开始2800定制网站建设</button> <button type="button" class="btn btn-default btn-xs" onClick="window.location.href='tencent://message/?uin=631063699&Site=&Menu=yes'"> 2800定制网站建设</button> </div> </div> <div class="carousel-inner bqsy"> <div class="container"> <div class="lxfs"> <h4 class="yutelnone">028-86922220 13518219792</h4> <h4 class="yutelblock"><a href="tel:02886922220">028-86922220</a> <a href="tel:13518219792">13518219792</a></h4> <a class="btn btn-default" href="tencent://message/?uin=532337155&Site=&Menu=yes" role="button">网站建设<span>QQ</span>:532337155</a> <a class="btn btn-default" href="tencent://message/?uin=631063699&Site=&Menu=yes" role="button">营销推广<span>QQ</span>:631063699</a> <a class="btn btn1 btn-default" href="mqqwpa://im/chat?chat_type=wpa&uin=532337155&version=1&src_type=web&web_src=oicqzone.com" role="button">网站制作<span>QQ</span>:532337155</a> <a class="btn btn1 btn-default" href="mqqwpa://im/chat?chat_type=wpa&uin=631063699&version=1&src_type=web&web_src=oicqzone.com" role="button">营销推广<span>QQ</span>:631063699</a> <a class="btn btn-default nonea" href="tencent://message/?uin=1683211881&Site=&Menu=yes" role="button">售后QQ:1683211881</a> <div class="dz">成都快上网专注: <a href="http://www.csdahua.cn/" target="_blank">网站优化</a> <a href="http://www.csdahua.cn/" target="_blank">网络推广</a> <a href="http://www.csdahua.cn/" target="_blank">网站建设</a> <address>地址:成都太升南路288号锦天国际A幢10楼</address> </div> </div> <div class="bzdh dz"><img src="https://www.cdcxhl.com/imges/bottom_logo.png" alt="创新互联"> <p><a href="https://www.cdcxhl.com/menu.html" target="_blank">成都创新互联科技有限公司</a><br> Tel:028-86922220(7x24h)</p></div> </div> </div> </footer> </body> </html> <script> $.getJSON ("../../qtwebpic.txt", function (data) { var jsonContent = { "featured":data } var random = jsonContent.featured[Math.floor(Math.random() * jsonContent.featured.length)]; $(".adpic .adimg").attr("href",random.link) $(".adpic img").attr("src",random.pic); }) </script>