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
3 Answers
Reset to default 5Use ®
instead. You can probably also just write ®
.
Use
<p title = "Normal ® hello">Hello</p>
OR
<p title = "Normal ® 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
版权声明:本文标题:javascript - sup tag inside title tag html - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741324776a2372410.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论