在 html 头的标题标签中显示上标
Display superscript in title tag of html head
我需要在 html head
的 title
标签中显示上标 MC。
到目前为止,我试图根据此 page 中的 unicode 字符集用 \uD83C\uDD6A 显示它。
所以当我加载网页时,我可以在 chrome 浏览器中看到上标 MC。
但它在其他人 MAC 或 windows.
的任何其他 chrome 中都不可见
因为我们不能在标题中使用 css
样式或 <sup>
tag
。
实现相同目标的解决方案是什么?
试试这个:
<title>🅪 or 🅪 or </title>
或者:
document.title = "🅪 or 🅪 or ";
替代是:
document.title = '\uD83C\uDD6A';
如果其中 none 是可见的,则可能是浏览器本身的 字体 问题。 Utf-8 得到广泛支持。
编辑
确保您正在设置字符集:
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
UTF-8 字符集支持所有语言。但以防万一..
为您的 html 添加语言:
<html lang="en">
可以找到所有语言代码here。
当我找到关于此事的更多信息时会更新...
最后,格式化 title
标签是一个耗时 activity。
MC这个角色真的很重要吗?它是否为 SERP(搜索引擎结果页)增加了任何有价值的东西?
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.
参考旧的question and answer,直接在title-tag中使用时应该使用🅪
。
我需要在 html head
的 title
标签中显示上标 MC。
到目前为止,我试图根据此 page 中的 unicode 字符集用 \uD83C\uDD6A 显示它。
所以当我加载网页时,我可以在 chrome 浏览器中看到上标 MC。
但它在其他人 MAC 或 windows.
因为我们不能在标题中使用 css
样式或 <sup>
tag
。
实现相同目标的解决方案是什么?
试试这个:
<title>🅪 or 🅪 or </title>
或者:
document.title = "🅪 or 🅪 or ";
替代是:
document.title = '\uD83C\uDD6A';
如果其中 none 是可见的,则可能是浏览器本身的 字体 问题。 Utf-8 得到广泛支持。
编辑
确保您正在设置字符集:
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
UTF-8 字符集支持所有语言。但以防万一..
为您的 html 添加语言:
<html lang="en">
可以找到所有语言代码here。
当我找到关于此事的更多信息时会更新...
最后,格式化 title
标签是一个耗时 activity。
MC这个角色真的很重要吗?它是否为 SERP(搜索引擎结果页)增加了任何有价值的东西?
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.
参考旧的question and answer,直接在title-tag中使用时应该使用🅪
。