• HTML5 将要移除的元素与属性



    元素表:
    http://demo.yanue.net/HTML5element/

    移除的元素
    • 纯表现的元素:basefont,big,center,font, s,strike,tt,u;
    • 对可用性产生负面影响的元素:frame,frameset,noframes;
    • 产生混淆的元素:acronym ,applet,isindex,dir。
    移除的属性
    • a,area,button,input,label,legend和textarea元素的accesskey属性;
    • link和a元素的rev和charset属性;
    • a元素的shape和coords属性;
    • img和iframe元素的longdesc属性;
    • link元素的target属性;
    • area元素的nohref属性;
    • head元素的profile属性;
    • html元素的version属性;
    • map,img,object,form,iframe,a元素的name(use id instead)属性;
    • meta元素的scheme属性;
    • object元素的archive,classid,codebase,codetype,declare和standby属性;
    • param元素的valuetype和type属性;
    • script元素的charset和language属性;
    • table元素的summary属性;
    • td和th元素的headers,axis和abbr属性;
    • td元素的scope属性;
    • caption,iframe,img,input,object,legend,table,hr,div,h1,h2,h3,h4,h5,h6,p,col,colgroup,tbody,td,tfoot,th,thead,tr和body元素的align属性;
    • body元素的alink,link,text和vlink属性;
    • body元素的background属性;
    • table,tr,td,th和body元素的bgcolor属性;
    • table,img和object元素的border属性;
    • table元素的cellpadding和cellspacing属性;
    • col,colgroup,tbody,td,tfoot,th,thead和tr元素的char和charoff属性;
    • br元素的clear属性;
    • dl,menu,ol和u元素的compact属性;
    • table元素的frame属性;
    • iframe元素的frameborder属性;
    • iframe,td和th元素的height属性;
    • img和object元素的hspace和vspace属性;
    • iframe元素的marginheight和marginwidth属性;
    • hr元素的noshade属性;
    • td和th元素的nowrap属性;
    • table元素的rules属性;
    • iframe元素的scrolling属性;
    • hr,input和select元素的size属性;
    • all elements with the exception of font元素的style属性;
    • li,ol和ul元素的type属性;
    • col,colgroup,tbody,td,tfoot,th,thead和tr元素的valign属性;
    • hr,table,td,th,col,colgroup,iframe和pre元素的width属性。

    为了使我们现有的代码更容易地向未来的标准迁移,我们应该尽量不使用这些元素和属性。

  • 相关阅读:
    python学习日记(OOP访问限制)
    python学习日记(OOP——@property)
    python学习日记(OOP——静态方法和类方法)
    python学习日记(isinstance和issubclass)
    python学习日记(OOP——反射)
    python学习日记(初识面向对象)
    python学习日记(内置、匿名函数练习题)
    python学习日记(内置函数)
    python学习日记(内置函数补充)
    Raft一致性协议
  • 原文地址:https://www.cnblogs.com/del/p/991883.html
Copyright © 2020-2023  润新知