How to use HTML5 features with XHTML

后端 未结 2 752
猫巷女王i
猫巷女王i 2020-12-20 19:50

I need some help with web programming. I have to do this assignment from school and the prof has given details on the structuring. One of them is that my site should be XHTM

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-20 20:03

    Depending on your assignment's definition of "HTML5", this is impossible with markup alone. A document cannot use a new HTML5 element while remaining compliant with any of the XHTML 1.0 doctypes.

    However if you're allowed to use JavaScript APIs that were introduced with HTML5, such as localStorage, you may be able to get away with writing a script to access those APIs while not using any new HTML5 elements like

    or
提交回复
热议问题