Google Answers Logo
View Question
 
Q: HTML Special Character / Superscript ( Answered 5 out of 5 stars,   2 Comments )
Question  
Subject: HTML Special Character / Superscript
Category: Computers > Programming
Asked by: b_griffin-ga
List Price: $6.00
Posted: 28 Jul 2004 15:56 PDT
Expires: 27 Aug 2004 15:56 PDT
Question ID: 380487
When I code the TM (Trademark) special character entity ™ it
appears correctly as superscript. But when I code the (R) (Registered)
special character entity ® it is the same size as the preceding
text.

How do I enter the special character entity for Registered and have it
appear as superscript?
Answer  
Subject: Re: HTML Special Character / Superscript
Answered By: maniac-ga on 28 Jul 2004 17:20 PDT
Rated:5 out of 5 stars
 
Hello B_Griffin,

Try the following:

<html>
     <head>
          <title>Example of Formatting Text</title>
     </head>
     <body>
          <p>This <sup>word&reg</sup> is Super-Script</p>
     </body>
</html>

in a file and view it with your favorite browser. I tested this example in:
  Internet Explorer
  Netscape
  Safari
and should show something like:
  This ^^word(r)^^ is Super-Script
where "word" and the registered mark will be in a smaller font / above
the normal line of text.

To find this answer, I tried the phrase:
  html superscript
as a search and selected:
  http://www.2kweb.net/html-tutorial/text-fmts/superscript/
to get the example code (plus your use of &reg for the special character).

Let me know in a clarification request if this does not work for you
or you need additional help related to this question.
  --Maniac
b_griffin-ga rated this answer:5 out of 5 stars
Yep, that did it. Thank you.

Comments  
Subject: Re: HTML Special Character / Superscript
From: sublime1-ga on 28 Jul 2004 16:34 PDT
 
b_griffin...

I couldn't find any code for making it a superscript.
I'm not sure that such a code exists.
Subject: Re: HTML Special Character / Superscript
From: b_griffin-ga on 28 Jul 2004 17:08 PDT
 
Thanks for your attempt. I'm still puzzled though... Seems like there
should be a way.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy