Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sup tag inside title tag html

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.

like image 375
abcabc Avatar asked Jan 14 '23 02:01

abcabc


2 Answers

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

like image 87
Explosion Pills Avatar answered Jan 19 '23 10:01

Explosion Pills


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.

like image 29
Shef Avatar answered Jan 19 '23 10:01

Shef