我们需要type =" text / css" for< link>在HTML5中 [英] Do we need type="text/css" for <link> in HTML5

查看:194
本文介绍了我们需要type =" text / css" for< link>在HTML5中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

是type =" text / css&必须在< link>

我们需要 type = / css

推荐答案

HTML5规范说, code> type 属性是纯粹的建议,并详细解释了浏览器如果省略(太多引用这里)应该如何行动。它没有明确说明省略的type属性有效或无效,但您可以安全地忽略它,因为您知道浏览器仍会按您的预期反应。

The HTML5 spec says that the type attribute is purely advisory and explains in detail how browsers should act if it's omitted (too much to quote here). It doesn't explicitly say that an omitted type attribute is either valid or invalid, but you can safely omit it knowing that browsers will still react as you expect.

这篇关于我们需要type =&quot; text / css&quot; for&lt; link&gt;在HTML5中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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