虽然我真的应该知道这一点,但我担心我不能完全理解.阅读过不同的文章,阅读书籍并与其他人交谈后,我仍然不太了解
HTML5部分的正确结构.在每个部分和/或文章中都有一个h1标签是否合适?新的部分或文章是否构成了再次启动h1到h2的过程?
我的印象是每个“块”应该被允许它自己的“标题”结构.
例如,这是正确的HTML5吗? :
<!doctype html> <html> <head> <title> <!-- etc. etc. --> <body> <section> <!-- two or more <articles> within this section,both using <h1> tags --> <h1>Here is a section with articles in</h1> <article> <h1>Heading</h1> <h2>sub heading</h2> <p>A paragraph> </article> <article> <h1>Heading</h1> <h2>sub heading</h2> <p>A paragraph</p> </article> ... </section> <section> <!-- two or more <articles> within this additional section,both using <h1> tags --> <h1>Here is a section with articles in</h1> <article> <h1>Heading</h1> <h2>sub heading</h2> <p>A paragraph> </article> <article> <h1>Heading</h1> <h2>sub heading</h2> <p>A paragraph</p> </article> ... </section> </body> </html>