我可以在 <h1> 和其他主题标签中使用哪些标签?
What tags can I use in <h1> and other topic tags?
我可以在 h1 标签(或 h2、h3、h4 等)中使用其他标签吗?
例如:
span {
color: red;
}
strong {
text-decoration: underline;
}
<h1>My <span>example</span> text</h1>
<h2>Can I <strong>use</strong> it?</h2>
<h3>Why I you </br> think so ... ? </h3>
这些代码是否有效并且在 SEO 中看起来没问题?
Will it be these code valid
要回答此类问题,您应该look at the HTML specification。
heading elements 部分说:
Content model: Phrasing content.
链接到:
a abbr area (if it is a descendant of a map element) audio b bdi bdo br button canvas cite code data datalist del dfn em embed i iframe img input ins kbd label link (if it is allowed in the body) map mark MathML math meter noscript object output picture progress q ruby s samp script select small span strong sub sup SVG svg template textarea time u var video wbr text
您还可以使用 a validation tool 测试您的代码。
请注意 </br>
从不 在 HTML 中有效。它是开始标记是必需的并且结束标记是禁止的元素。
looks ok in SEO ?
这种性质的 SEO 问题是题外话。您可以试试 Webmasters。
标题标签有利于以有组织的方式呈现内容。从 SEO 的角度来看,以一种易于爬虫抓取和索引 website/web 页面的方式呈现数据总是好的。使用这些标签可以让搜索引擎爬虫更容易有效地爬取您的网页。
使用其他标签可以提高网页的可读性和用户体验,但在标题标签内使用标题标签可能会损害您的 SEO。出于 SEO 目的,请务必遵循 website/web 页面的 SEO 指南。
希望这些可以帮助您了解更多:
https://www.searchenginejournal.com/important-tags-seo/156440/
https://www.seoblog.com/2017/06/changing-tags-hurt-seo/
我可以在 h1 标签(或 h2、h3、h4 等)中使用其他标签吗? 例如:
span {
color: red;
}
strong {
text-decoration: underline;
}
<h1>My <span>example</span> text</h1>
<h2>Can I <strong>use</strong> it?</h2>
<h3>Why I you </br> think so ... ? </h3>
这些代码是否有效并且在 SEO 中看起来没问题?
Will it be these code valid
要回答此类问题,您应该look at the HTML specification。
heading elements 部分说:
Content model: Phrasing content.
链接到:
a abbr area (if it is a descendant of a map element) audio b bdi bdo br button canvas cite code data datalist del dfn em embed i iframe img input ins kbd label link (if it is allowed in the body) map mark MathML math meter noscript object output picture progress q ruby s samp script select small span strong sub sup SVG svg template textarea time u var video wbr text
您还可以使用 a validation tool 测试您的代码。
请注意 </br>
从不 在 HTML 中有效。它是开始标记是必需的并且结束标记是禁止的元素。
looks ok in SEO ?
这种性质的 SEO 问题是题外话。您可以试试 Webmasters。
标题标签有利于以有组织的方式呈现内容。从 SEO 的角度来看,以一种易于爬虫抓取和索引 website/web 页面的方式呈现数据总是好的。使用这些标签可以让搜索引擎爬虫更容易有效地爬取您的网页。
使用其他标签可以提高网页的可读性和用户体验,但在标题标签内使用标题标签可能会损害您的 SEO。出于 SEO 目的,请务必遵循 website/web 页面的 SEO 指南。
希望这些可以帮助您了解更多:
https://www.searchenginejournal.com/important-tags-seo/156440/ https://www.seoblog.com/2017/06/changing-tags-hurt-seo/