admin管理员组

文章数量:1287915

I need registered trade mark as superscript in the tool tip. I tried using sup inside title tag

<p title="Normal <sup>R</sup>hello">Hello World</p>

but I see sup in the tooltip.

How to make sure that sup tag is ignore and R appears as a superscript inside the tooltip.

I need registered trade mark as superscript in the tool tip. I tried using sup inside title tag

<p title="Normal <sup>R</sup>hello">Hello World</p>

but I see sup in the tooltip.

How to make sure that sup tag is ignore and R appears as a superscript inside the tooltip.

Share Improve this question edited Dec 14, 2017 at 20:35 A-Sharabiani 19.4k22 gold badges127 silver badges138 bronze badges asked Feb 28, 2013 at 19:10 abcabcabcabc 391 silver badge4 bronze badges 1
  • 2 You can use unicode: ™ (copy/paste) – Tihauan Commented Feb 28, 2013 at 19:14
Add a ment  | 

3 Answers 3

Reset to default 5

Use &reg; instead. You can probably also just write ®.

Use

<p title = "Normal &#174; hello">Hello</p>

OR

<p title = "Normal &reg; hello">Hello</p>

BONUS: Here is a list of most HTML entities categorized and formatted nicely.

You cannot use markup in a title attribute.

Consider analysing whether you need a superscript R (which is not the registered trademark sign), whether you need a trademark indicator in the first place, and if you do, why you would put it into an attribute that may or may not be seen by the user, and usually isn’t.

本文标签: javascriptsup tag inside title tag htmlStack Overflow