本文介绍了更改为HTML5 DOCTYPE安全吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站目前正在使用:

My site is currently using:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

然而,像Facebook插件只能在HTML5中有效。那么,将我的DOCTYPE更改为<!DOCTYPE html> 是否安全?这会影响到什么吗?

However, things like Facebook plugins are only valid in HTML5. So, is it safe to change my DOCTYPE to <!DOCTYPE html>? Will this affect anything?

推荐答案

是的,您可以更改 DOCTYPE 它不会影响你已经完成的任何事情。在 HTML 5 中,你会得到一些新功能,你可以用它来实现你的未来目的。只要检查,您将了解HTML 5中的功能。

Yes you can change your DOCTYPE,it will not affect anything that you have already done.In HTML 5 you will get some new features which you can use for your future purpose.Just check this link and you will get some idea about the features present in HTML 5

这篇关于更改为HTML5 DOCTYPE安全吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 16:22