Pathetic Learner
Pathetic Learner

Reputation: 729

Deprecated tags in html5

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.

Upvotes: 1

Views: 6760

Answers (5)

ramsesoriginal
ramsesoriginal

Reputation: 1920

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)

Upvotes: 0

Gatekeeper
Gatekeeper

Reputation: 1616

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 :-)

Upvotes: 0

Quentin
Quentin

Reputation: 944555

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.

Upvotes: 2

entropid
entropid

Reputation: 6239

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.

Upvotes: 2

techlead
techlead

Reputation: 779

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.

enter image description here

Upvotes: 1

Related Questions