We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第39天 title与h1、b与strong、i与em的区别分别是什么?
The text was updated successfully, but these errors were encountered:
title
h1
b
strong
font-weight: bold
i
em
font-style: italic
b: bold ; strong: strong ; i: Italic ; em: emphasize;
Sorry, something went wrong.
关于 title 和 h1,title 是网页的标题。主要面向的对象是搜索引擎和通过搜索结果过来的人(面向外人,可以理解为报纸首页的标题)。而 h1 是网页内部的标题,是给已经进到页面的人看的(可以理解为报纸某个版面的大标题)。从人类的语境上来理解,两者并没有差别。
b 与 strong 的效果人眼上是无法区分的。在语义上,b 仅表示加粗既装饰用,我们应该使用 CSS 而不应该使用 b;而 strong 则表示被包围的内容很重要,是语气上的感觉。对于搜索引擎来说,会把 b 和 strong 视为同一含义。因此我们在使用上需要注意。
i 与 em 的区别类似 b 和 strong 的区别。i 用于斜体展示,我们应该使用 CSS 而不应该使用 i;而 em 则是对内容的强调,但程度没有 strong 那么高。同样,对搜索引擎来说,两者是没有区别的。
参考文章: title タグと h1 タグは完全同一がいい? 文字を強調するタグ strong・b・em・i の違いと SEO 効果
No branches or pull requests
第39天 title与h1、b与strong、i与em的区别分别是什么?
The text was updated successfully, but these errors were encountered: