What is the best way to structure an HTML document for SEO and accessibility?

前端 未结 6 865
梦毁少年i
梦毁少年i 2021-01-01 03:29

What\'s the recommended way to structure html that includes navigation so it\'s still SEO\'able and accessible.

For example, should the structure be more like that o

6条回答
  •  醉酒成梦
    2021-01-01 04:03

    It's generally considered to be "best" to have your content as close to the top of the page as possible. So technically, your second example is best. The skip to content link is a nice touch for screen readers though, and that state of CSS layouts being what they are, no one would begrudge you putting some simple navigation at the top of your document. I certainly don't think it would hurt your Google PageRank.

提交回复
热议问题