IOT Virtual Conference - Register now to book your ticket and get updates
x
CONGRATULATIONS! C# Corner Q1, 2021 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
TECHNOLOGIES
ANSWERS
LEARN
NEWS
BLOGS
VIDEOS
INTERVIEW PREP
BOOKS
EVENTS
CAREER
MEMBERS
JOBS
HTML Tags Which Are Deprecated In HTML5
Kamal Rawat
Updated date
Oct 16, 2019
8.8
k
0
0
In this blog you will learn about HTML tags which are deprecated in HTML5.
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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 Tags
HTML 5
HTML
Next Recommended Reading
The "optgroup" tag in HTML5