Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
HTML Tags Which Are Deprecated In HTML5
WhatsApp
Kamal Rawat
5y
22.1
k
0
0
25
Blog
Introduction
One of the main points on which HTML5 win over XHTML2.0 is “backward compatibility”. XHTML2.0 sought to enforce well-written code by using very harsh error handling. If a page returns error based on syntax the user agent will stop parsing the code.
But the problem with this approach is that the earlier versions of HTML allows page to be rendered even if it is not a well-written, erroneous HTML code. So the Internet is full with badly written HTML. Strict error enforcement will disallow these websites to be displayed at all.
An HTML5 specification states that certain HTML tags should not be used but it is only a guideline to the HTML authors. The implementations, however, must support these tags to be backward compatible.
The tags, which are deprecated, are the following:
<basefont>
<big>
<center>
<font>
<s>
<strike>
<tt>
<u>
<frame>
<frameset>
<noframe>
<acronym>
<applet>
<isindex>
<dir>
Several tag attributes are also removed. Few of the most notable ones are
element
attribute removed
a, link
rev, charset
img
longdesc, name
html
version
th
abbr
td
scope
all block level elements
align
body
background
img
hspace, vspace
table, tr, th, td
bgcolor
table
border, cell padding, cell spacing
td, th
height, width
table
valign
HTML5 is a working draft, so these tag and attribute removal is still under discussion. They may finally get supported or be replaced by other attributes.
HTML
HTML 5
HTML Tags
Up Next
The "optgroup" tag in HTML5
Ebook Download
View all
Frontend Developer Interview Questions and Answers
Read by 940 people
Download Now!
Learn
View all
Membership not found