Which HTML version should be chosen for a public website

后端 未结 4 1300
伪装坚强ぢ
伪装坚强ぢ 2021-01-18 18:17

I am currently working on a website. After studying HTML5 and its features I want to go ahead with it. I want to use features like offline storage, data- attribs, simple cha

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 18:54

    Depends entirely on the users of the website, and which features their browsers support. As SLaks said, HTML5 isn’t an all-or-nothing proposition.

    Mark Pilgrim has two good chapters on detecting support for HTML features via JavaScript (which is the only reliable way to do it):

    • http://diveintohtml5.ep.io/detect.html
    • http://diveintohtml5.ep.io/everything.html

    You use the same approach here that developers have always used for front-end web code — use new features in such a way that users who don’t have that feature yet can still use the site, even if the experience isn’t as slick for them.

提交回复
热议问题