Should have or should have ?

前端 未结 3 413
陌清茗
陌清茗 2021-02-04 14:32

I\'m reading Mark Pilgirm\'s \"Dive into HTML5\" and in the semantics section, it talks about how HTML5 introduces the

and
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-04 15:11

    Both are semantically valid

    It all depends on how you want your page interpreted.

    If you're writing a blog post, each post would be an

    , and in a particularly long blog post, you could separate it into logical
    s with their own

    s and whatever else it needs.

    If you're writing a research page, you might use to separate out the table of contents, abstract, main body, and appendix. In the main body (and appendix) you might have a particular section that truly is an

    .


    If you're laying out a page, I highly recommend the following format:

    
        

    Title

    ...
    ...
    ...

    Although if you don't need so many

    s, keep it simple with:

    
        
    ...

提交回复
热议问题