< title>元素需要位于< head>元件? [英] Does the <title> element need to be in the <head> element?

查看:151
本文介绍了< title>元素需要位于< head>元件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法更新网站上的许多网页的标题元素(我使用的电子商务软件的限制),并且我想知道< ; title> 元素可以放在< body> 元素中。

解决方案

这就是W3C对此的看法:


7.4.2 TITLE 元素

<每个HTML文档必须有一个<$ c HEAD
部分中的$ c> TITLE 元素。


因此,不能将< title> 标签放在< body> 标记。



联系上述电子商务软件的开发人员,看看是否有办法改变页面的标题,通过HTML直接或通过电子商务软件的管理用户界面。如果你不能,可以得到一个不同的电子商务软件解决方案。

I don't have access to update the title element for many of the pages on my site (a limitation in the e-commerce software I'm using) and I'm wondering if the <title> element can be placed within the <body> element.

解决方案

This is what the W3C has to say about it:

7.4.2 The TITLE element

Every HTML document must have a TITLE element in the HEAD section.

So no, you can't put the <title> tag inside the <body> tag.

Contact the developer(s) of said e-commerce software and see if there's a way to change the title of the page, either through the HTML directly or through the administration user interface of the e-commerce software. If you can't, get a different e-commerce software solution.

这篇关于&lt; title&gt;元素需要位于&lt; head&gt;元件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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