Is there an advantage of the new HTML5 elements?

前端 未结 2 1137
梦谈多话
梦谈多话 2020-12-12 06:31

HTML5 introduces some nice new elements, , , and , that will be useful in web design.

相关标签:
2条回答
  • 2020-12-12 06:52

    A recent statement from Hixie, the HTML5 editor, says: “The use case for most of the ‘semantic’ markup is [just] easier authoring and maintenance, in particular for se­lec­tors in CSS.”

    When authors use tags in certain ways, the markup is easier to read and modify to coworkers or others who work on the same markup. It is not realistic to expect (though admittedly possible) that browsers will do anything special with these elements (except render them as blocks and not inline elements) or that search engines will get enthusiastic about them.

    0 讨论(0)
  • 2020-12-12 07:02

    The advantage is mainly semantic. It's somewhat easier to maintain the code, and web crawlers can more easily determine where certain information is in the page.

    0 讨论(0)
提交回复
热议问题