I am using using html5 for building web page. I am able to use html5 tags. I want to know whether i can use tags of html which are deprecated in html5 like <ul>
tag.
Edit (rectifying a typo): I meant the <u>
tag.
Some elements that are deprecated in HTML 4.x / XHTML 1.x are acceptable in HTML 5 , some are obsolete ; you would need to check them on a case-by-case basis (noting that HTML 5 is still a draft and thus a moving target).
deprecated in html5 like
<ul>
tag
<ul>
has never been deprecated.
The tags <acronym>
, <applet>
, <basefont>
, <big>
, <center>
, <dir>
, <font>
, <frame>
, <frameset>
, <noframes>
, <isindex>
, <strike>
, <tt>
aren't used anymore in HTML5 . They aren't deprecated, but you'd better not use them ( source ).
You can also check absent attributes: http://www.w3.org/TR/html5-diff/#absent-attributes .
Yes, you can use the <u>
tag in html 5 even though it is deprecated. Using CSS to achieve the same effect is however recommended.
<!DOCTYPE html>
<html>
<head>
<title>Can we use deprecated html 4 elements in html 5?</title>
</head>
<body>
This is a <u>test</u>.
</body>
</html>
You can use the W3C validator to validate it.
deprecated in html5 like
<ul>
tag
<ul>
is not deprecated, you can find some lists of deprecated elements and their replacements like this one , just try to google little bit more :-)
deprecated in html5 like
<ul>
tag
The <ul>
tag will not be deprecated. you can see all the changes here , and the tags that will be dropped here . Nothing will be "deprecated" (see here ), as :
Since HTML5 has separate conformance requirements for authors and user agents there is no longer a need for marking features "deprecated".
so keep on using your <ul>
! (If you actually have an unsorted list... if not, use the element that's most suited for the job)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.