nktkarnany
nktkarnany

Reputation: 53

Display superscript in title tag of html head

I need to display superscripted MC in the title tag in the html head.
So far I am trying to display that with \uD83C\uDD6A according to the unicode character set in this page .

So I am able to see superscripted MC in my chrome browser when I load the web page.
But it's not visible in any other chrome in other peoples MAC or windows.

Since we cannot use css style or <sup> in title tag.

What could be a solution for achieving the same?

Upvotes: 1

Views: 6094

Answers (2)

Sparky
Sparky

Reputation: 297

Try this:

<title>&#127338; or &#x1f16a; or 🅪</title>

Or:

document.title = "&#127338; or &#x1f16a; or 🅪";

Alternative is:

document.title = '\uD83C\uDD6A';

If none of these are visible, it's probably a font issue on the browser itself. Utf-8 is widely supported.


EDIT

Ensure you are setting your charset:

<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

The UTF-8 character set supports all languages. But just in case..

Add a language to your html:

<html lang="en">

All language codes can be found here.

Will update when I find more information on this matter...

In the end, formatting the title tag is a time consuming activity.

Is the MC character really important? Does it add anything valuable to the SERP (Search Engine Results Page)?

MC in superscript is used as a trademark sign in, for example, Quebec, Canada.

In Canada, there is no legal obligation to use the ® , TM, MC or MD symbols. It is however recommend to use ® (registered trade-mark) or MD (marque de commerce déposée) in association with your registered trade-marks. Symbols TM (trade-mark) or MC (marque de commerce) can be used in association with your other trade-marks whether an application has been filed or not. These symbols remind consumers and your competitors that you are the owner of the trade-marks in question.

Above was found here

Upvotes: 1

Referring to an old question and answer, you should use &#x1f16a; when using it directly in your title-tag.

Upvotes: 0

Related Questions