为什么不能< style> HTML< body>中的标签标签验证在W3C? [英] Why can’t <style> tags within the HTML <body> tag validate on W3C?

查看:125
本文介绍了为什么不能< style> HTML< body>中的标签标签验证在W3C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

< STYLE><<必须在< HEAD>的HTML文档?

我是一个团队的一员, CMS系统。

I am part of a team that has developed a CMS system.

我们希望在< p>中插入< style> ; body> 的HTML页面以验证W3C标准的方式,因为验证是我们的SEO顾问的要求。

We would like to be able to insert <style> tags within the <body> of an HTML page in a way that validates to W3C standards, as validation is a requirement of our SEO consultant.

推荐答案

HMTL DTD不允许它在所有浏览器的body标签中完美地运行,但它拒绝验证。 ,因此它不验证。无所谓,所有浏览器都支持它。

The HMTL DTD does not allow it, therefore it doesn't validate. Doesn't matter, all browsers support it anyway.

这篇关于为什么不能&lt; style&gt; HTML&lt; body&gt;中的标签标签验证在W3C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆