gpt4 book ai didi

html - http-equiv 与 HTML 文档的相关性是什么?

转载 作者:太空宇宙 更新时间:2023-11-04 13:14:53 26 4
gpt4 key购买 nike

http-equiv 与 HTML 文档的相关性是什么?它们是在文档发送到浏览器时使用,还是在文档发送请求时使用?

最佳答案

来自source :

By using the so called HTTP-EQUIV tag you are able to add certain values to your website. HTTP-EQUIV meta tags define the header of an HTML document. This is a section of code that is sent to your browser before the rest of the page. It communicates to your browser certain introductory information about the page. You can think of it as a "Hello, I am a HTML page. I was born on such-and-such a date and live on such-and-such a server. I was last modified on such-and-such a day, etc...

Where do you add this http-equiv= tag?

You may add this http-equiv= tag to all of your webpages, so not only in the first index page. Make sure that on every page relevant meta tags are added. Add keywords and phrases that are relevant and correspond to the text and the language on that specific page. It might be a lot of work to add specific meta tags to each page but you will notice in time that it works!

还要注意

HTML 4.01:元 http-equiv="content-type"content="text/html; charset=UTF-8"

HTML5:元字符集="UTF-8"

关于html - http-equiv 与 HTML 文档的相关性是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29248545/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com