HTML5 sub nav semantics

前端 未结 2 2079
情话喂你
情话喂你 2021-02-14 03:47

A quick question re: HTML5 nav, specifically that of sub navigation (from a semantic point of view).

I have

2条回答
  •  你的背包
    2021-02-14 04:02

    I would differentiate between the navigation sections by giving them semantically relevant ids and by placing them in order of importance in the HTML code, along the following lines:

    
      
      
      
    
      

    Other than that, I see no real need for further differentiation between the sections. The above approach is easy to understand, should be reasonably easy to style and is semantically clear, which is certainly good enough for me.

提交回复
热议问题