Sponsored sites

Saturday 11 October 2014

HTML5 Deprecated Tags and Attributes

Deprecated Tags:

The following elements are not available in HTML5 anymore and their function is better handled by CSS:
Tags (Elements)Description
<acronym>Defines an acronym
<applet> Defines an applet
<basefont>Defines an base font for the page.
<big>Defines big text
<center>Defines centered text
<dir>Defines a directory list
<font>Defines text font, size, and color
<frame> Defines a frame
<frameset> Defines a set of frames
<isindex> Defines a single-line input field
<noframes>Defines a noframe section
<s> Defines strikethrough text
<strike>Defines strikethrough text
<tt>Defines teletype text
<u> Defines underlined text

Deprecated Attributes:

HTML5 has none of the presentational attributes that were in HTML4 as their functions are better handled by CSS. Some attributes from HTML4 are no longer allowed in HTML5 at all and they have been removed compeletely.
Following is the table having removed attributed and their corresponding impacted tags (elements) ie. elements from which those attributes have been removed permanently:
Removed AttributesFrom the Elements
revlink, a
charset link and a
shape a
coords a
longdesc img and iframe.
target link
nohref area
profile head
version html
name img
scheme meta
archiveobject
classidobject
codebaseobject
codetypeobject
declare object
standby object
valuetype param
type param
axis td and t
abbr td and t
scope td
align caption, iframe, img, input, object, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr.
alinkbody
linkbody
vlink body
text body
background body
bgcolor table, tr, td, th and body.
border table and object.
cellpadding table
cellspacing table
char col, colgroup, tbody, td, tfoot, th, thead and tr.
charoff col, colgroup, tbody, td, tfoot, th, thead and tr.
clear br
compact dl, menu, ol and ul.
frame table
compact dl, menu, ol and ul.
frame table
frameborder iframe
hspace img and object.
vspace img and object.
marginheight iframe
marginwidth iframe
noshade hr
nowrap td and th
rules table
scrolling iframe
size hr
type li, ol and ul.
valign col, colgroup, tbody, td, tfoot, th, thead and tr
width hr, table, td, th, col, colgroup and pre.

No comments:

Post a Comment