In HTML5, can the
and
tags appear outside of the <body> tag?

后端 未结 8 1486
梦谈多话
梦谈多话 2020-12-01 07:12

I\'m currently using the above tags in this way (classic tag order):


  ...
  
    
...
8条回答
  •  粉色の甜心
    2020-12-01 08:09

    I agree with some of the others' answers. The and

    tags have two unique and very unrelated functions. The
    tag, if I'm not mistaken, was introduced in HTML5 and was created for increased accessibility, namely for screen readers. It's generally used to indicate the heading of your document and, in order to work appropriately and effectively, should be placed inside the tag. The tag, since it's origin, is used for SEO in that it constructs all of the necessary meta data and such. A valid HTML structure for your page with both tags included would be like something like this:

    
    
        
            
        
        
            

提交回复
热议问题