问题原文
原帖链接 · benny-ben · CC BY-SA 4.0
Is it a correct way if I write a H1 without any text under and then immediately after I write the H2?
The H2 will be instead followed by the text of my page. To be clearest as possible the structure could be this:
<h1>Camping in Australia: a great choice in the untainted nature!<h1/>
<h2>Campgrounds for tents for your camping in Australia</h2>
<p>some paragraph</p>
As you can see, the h1 title has not text, and it's immediately followed by the h2 title wich will, instead, contain important informations in the text for the user.
已采纳解答
原帖链接 · Alston Antony · CC BY-SA 4.0
These h1-h4 headings represent the logical heading structure which means there is nothing wrong, You can have a main heading and it can immediately follow it with subheading to categorize your sections in the body.
However in order to be logical the subheading should be niche of the main heading rather than talking about a completely different topic.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
