p tag in h1 for seo

2019-02-19 12:32发布

I was wondering if using <p> tags nested in a <h1> tag would be bad for SEO purposes.

<h1>
    <p>some title</p>
    <p>some subtitle</p>
</h1>

This would make my life a bit easier, dealing with dynamic page titles.

8条回答
太酷不给撩
2楼-- · 2019-02-19 13:32

I don't think it would be worse for SEO to include <p>aragraphs around the text but it isn't valid HTML so you shouldn't do it anyway.

It could be bad to have too long/spammy headings though if that's what you're asking.

查看更多
一纸荒年 Trace。
3楼-- · 2019-02-19 13:33

If you want to use titles and subtitles use h1 and h2 etc. With that way the crawlers understands the hierarchy and the importance of your headlines.

查看更多
登录 后发表回答