Everyone who has heard of HTML5 knows its power, such as more descriptive markup, multimedia support that is less dependent on plug-ins, cross-document message communication, Web Sockets, client-side storage, more powerful forms, and improved accessibility. flexibility, advanced selectors, and powerful visual effects. Without further ado, let’s go into details
Abandoned tags and attributes
Abandoned tags
Abandoned because they can be replaced with CSS
basefont
big
center
font
strike
tt
u
s
Deprecated due to breaking usability and accessibility
frame
frameset
noframes
Causing confusion, infrequent
acronym is used and abandoned because it often clutters the page. You can use abbr instead.
applet is abandoned because you can use object instead.
isindex is abandoned. Because using form controls instead of
dir is deprecated because using ul instead of
noscript elements can only be used in HTML, not XML.
Obsolete attributes
align
link, vlink, alink and text attributes on the body tag
bgcolor
height and width
scrolling attributes on iframe elements
valign
hspace and vspace
cellpadding, cellspacing and border attributes on table tags
The visual effects achieved by the above elements can be achieved with css, so they are abandoned
In addition, the target attribute is abandoned in the specification
The profile attribute on the head tag will no longer be supported
The longdesc attribute of img and iframe elements has also been removed
There are alternatives to these attributes in the HTML5 specification, you can view HTML Standard
New structural tags and attributes
Document type declaration
<!doctype html><html> <head> <meta charset="UTF-8"> <title>文章标题</title> </head> <body>
Article text part