Is sup depreciated?

Posted on 2010-01-04
Last Modified: 2013-11-19
I was wondering in XHTML <sup></sup> depreciated?
Question by:stargateatlantis
    LVL 6

    Accepted Solution

    In the company (of web developers) where I work there was a recent e-mail discussion about the use of <sup>.

    The consensus was that the the <sup> tags shouldn't be used because there's better ways to do it.  What route you take instead of <sup> depends on what it is you're doing.

    If you want to do a trademark, copyright, ^2, or ^3, use the appropriate html codes:
    &trade; for "
    &copy; for ©
    &sup2; for ²
    &sup3; for ³

    If you want some other text up there, then use CSS:

    So you could build some CSS classes such as those below.

    To answer your question directly, it's not a deprecated tag.

    Open in new window

    LVL 6

    Assisted Solution

    by:Tony O'Byrne
    Btw, The <sup> messes with the line height of the containing element and requires manual font size adjustment in order to look sensible, whereas the character entity doesnt (and is also semantically correct).
    LVL 10

    Assisted Solution

    Agreed.  It is not a deprecated tag and there is nothing wrong with using it, but style sheets are typically much more useful and efficient for formatting.  I would say ultimately it will depend on your pages and the data included in them.  If you are only trying to sup one part, then I'd say either way works, but if you are going to be using sup multiple times, definitely go with css.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: CSS Specialist

    We don’t have to sell you on the idea of becoming a developer. If you’re you here, you already know it’s one of the most lucrative (and fastest growing) career tracks out there. It’s CSS that allows you to set yourself apart from other web and mobile developers.

    Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
    Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL ( several years ago, it seemed like now was a good time to updat…
    In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now