This chapter will introduce you to some basic knowledge about the HTML5 header tag. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
meta is an auxiliary tag in the head area of html language. The meta tag has many functions, such as: search engine optimization (seo), defining the language used on the page, automatically refreshing and pointing to a new page, and realizing web page conversion. Time-based dynamic effects, control page buffering, web page rating and evaluation, control the window for web page display, etc.!
Composition of meta tag: meta tag has two attributes, they are http-equiv attribute and name attribute. Different attributes have different parameter values. These different parameter values realize different web pages. Function.
1. The name attribute of the tag
The name attribute is mainly used to describe the web page, and the corresponding attribute value is content , the content in content is mainly used by search engine robots to find information and classify information. The syntax format of the name attribute of the
meta tag is:
<meta name="参数"content="具体的参数值">
The name attribute mainly has the following parameters:
1. Keywords (Keywords)
Description: keywords are used to tell search engines what the keywords of your web page are.
<meta name="keywords"content="meta总结,html meta,meta属性,meta跳转">
2. description (website content description)
<meta name="description"content="haorooms博客,html的meta总结,meta是html语言head区的一个辅助性标签。">
Description: description is used to tell search engines the main content of your website.
3. Robots (robot guide)
Description: robots are used to tell the search robot which pages need to be indexed and which pages are not Index required.
The parameters of content include all, none, index, noindex, follow, and nofollow. The default is all.
<meta name="robots"content="none">
The specific parameters are as follows:
The information parameter is all: the file will be retrieved and the links on the page can be queried;
The information parameter is none: the file will not be retrieved, and the links on the page cannot be queried;
The information parameter is index: the file will be retrieved;
The information parameter is follow: links on the page can be queried;
The information parameter is noindex: the file will not be retrieved, but the links on the page can be queried;
The information parameter is nofollow: the file will be retrieved, but the links on the page cannot be queried;
4, author (author)
<meta name="author"content="root,root@xxxx.com">
Description: Mark the web page Author
5, generator
<meta name="generator"content="信息参数"/>
The information parameters of the generator of the meta tag represent the software used to create the website.
6. COPYRIGHT
<META NAME="COPYRIGHT"CONTENT="信息参数">
The COPYRIGHT information parameter of the meta tag represents the copyright information of the website.
2. http-equiv attribute of tag
##http-equivAs the name suggests, it is equivalent to http The function of the file header is that it can return some useful information to the browser to help display the web page content correctly and accurately. The corresponding attribute value is content, and the content in content is actually the variable value of each parameter. The syntax format of the http-equiv attribute of the
meta tag is:<meta http-equiv="参数"content="参数变量值">;
The http-equiv attribute mainly has the following parameters:
1. Expires
Description: Can be used to set the expiration time of the web page. Once a web page expires, it must be retransmitted to the server.<meta http-equiv="expires"content="Fri,12Jan200118:18:18GMT">Note: GMT time format must be used.
2. Pragma (cache mode)
Description: Prohibit the browser from accessing page content from the cache of the local computer.<meta http-equiv="Pragma"content="no-cache">Note: With this setting, visitors will not be able to browse offline.
3. Refresh
Description: Automatically refresh and point to the new page.<meta http-equiv="Refresh"content="2;URL=http://www.haorooms.com"> //(注意后面的引号,分别在秒数的前面和网址的后面)Note: The 2 refers to automatically refreshing to the URL after staying for 2 seconds.
4. Set-Cookie (cookie setting)
Note: If the web page expires, the saved cookies will be deleted.<meta http-equiv="Set-Cookie"content="cookie value=xxx;expires=Friday,12-Jan-200118:18:18GMT;path=/">Note: GMT time format must be used.
5. Window-target (display window setting)
Description: Force the page to be displayed as an independent page in the current window.<meta http-equiv="Window-target"content="_top">Note: Used to prevent others from calling your own page in the frame.
6. content-Type (display character set setting)
Description: Set the character set used by the page.<meta http-equiv="content-Type"content="text/html;charset=gb2312">The details are as follows: When the charset information parameter of the meta tag is such as GB2312, it means that the encoding used by the website is Simplified Chinese; The charset information of the meta tag When the parameter is like BIG5, it means that the encoding used by the website is Traditional Chinese; when the information parameter of the charset of the meta tag is like iso-2022-jp, it means that the encoding used by the website is Japanese;
When the charset information parameter of the
meta tag is such as ks_c_5601, it means that the encoding used by the website is Korean; when the charset information parameter of the meta tag is such as ISO-8859-1, it means that the encoding used by the website is Korean. The encoding is English; when the charset information parameter of the meta tag is such as UTF-8, it represents the world's universal language encoding;7, content-Language (display language setting Certainly)
<meta http-equiv="Content-Language"content="zh-cn"/>
8、http-equiv="imagetoolbar"
<meta http-equiv="imagetoolbar"content="false"/>
指定是否显示图片工具栏,当为false代表不显示,当为true代表显示。
9、Content-Script-Type
<Meta http-equiv="Content-Script-Type"Content="text/javascript">
W3C网页规范,指明页面中脚本的类型。
三、常用的 标签写法
1、声明文档使用的字符编码:
2、优先使用 IE 最新版本和 Chrome:
3、页面描述:
4、页面关键词:
5、网页作者:
6、搜索引擎抓取:
7、为移动设备添加 viewport:
8、iOS 设备 begin:
9、添加到主屏后的标题(iOS 6 新增):
10、启用360浏览器的极速模式(webkit):
11、避免IE使用兼容模式:
12、不让百度转码:
13、微软的老式浏览器:
14、强制竖屏:
uc强制竖屏:
QQ强制竖屏:
UC强制全屏
QQ强制全屏:
15、点击无高光: windows phone
The above is the detailed content of A brief discussion on the basic knowledge about HTML5 head tag. For more information, please follow other related articles on the PHP Chinese website!

微软宣布进一步扩展和 Meta 的 AI 合作伙伴关系,Meta 已选择 Azure 作为战略性云供应商,以帮助加速 AI 研发。在 2017 年,微软和 Meta(彼时还被称为 Facebook)共同发起了 ONNX(即 Open Neural Network Exchange),一个开放的深度学习开发工具生态系统,旨在让开发者能够在不同的 AI 框架之间移动深度学习模型。2018 年,微软宣布开源了 ONNX Runtime —— ONNX 格式模型的推理引擎。作为此次深化合作的一部分,Me

2月25日消息,Meta在当地时间周五宣布,它将推出一种针对研究社区的基于人工智能(AI)的新型大型语言模型,与微软、谷歌等一众受到ChatGPT刺激的公司一同加入人工智能竞赛。Meta的LLaMA是“大型语言模型MetaAI”(LargeLanguageModelMetaAI)的缩写,它可以在非商业许可下提供给政府、社区和学术界的研究人员和实体工作者。该公司将提供底层代码供用户使用,因此用户可以自行调整模型,并将其用于与研究相关的用例。Meta表示,该模型对算力的要

今年 7 月初,Meta AI 发布了一个新的翻译模型,名为 No Language Left behind (NLLB),我们可以将其直译为「一个语言都不能少」。顾名思义,NLLB 可以支持 200 + 语言之间任意互译,Meta AI 还把它开源了。平时你都没见到的语言如卢干达语、乌尔都语等它都能翻译。论文地址:https://research.facebook.com/publications/no-language-left-behind/开源地址:https://github.com/

8月31日消息,近日有关虚拟现实领域的令人振奋消息传出,据可靠渠道透露,meta公司即将在9月27日正式发布其全新虚拟现实头显——metaQuest3。这款头显据称拥有颠覆性的深度测绘技术,将为用户带来更加逼真的混合现实体验。这项名为深度测绘的技术被认为是metaQuest3的一项重大创新。该技术使得虚拟数字物体与真实物体能够在同一空间内进行互动,大大提升了混合现实的沉浸感和真实感。一段在Reddit上流传的视频展示了深度测绘功能的惊人表现,不禁让人惊叹不已。从视频中可以看出,metaQuest

美国东部时间8月2日,Meta发布了一款名为AudioCraft的生成式AI工具,用户可以利用文本提示来创作音乐和音频AudioCraft由三个主要组件构成:MusicGen:使用Meta拥有/特别授权的音乐进行训练,根据文本提示生成音乐。AudioGen:使用公共音效进行训练生成音频或扩展现有音频,后续还可生成环境音效(如狗叫、汽车鸣笛、木地板上的脚步声)。EnCodec(改进版):基于神经网络的音频压缩解码器,可生成更高质量的音乐并减少人工痕迹,或对音频文件进行无损压缩。官方声称,Audio

在游戏、元宇宙等领域的推动下,XR(扩展现实,VR/AR/MR统称)赛道的热度明显获得提升,头显设备也成了“香饽饽”,获得了许多企业的青睐,其中就有Meta(META.US)和苹果(AAPL.US)、字节跳动、索尼等巨头。而这些巨头之间的“故事”还引来了大批“吃瓜群众”。打压竞争对手?Meta赶在苹果之前发布最新版头显众所周知,在全球的大型科技企业中,Meta对元宇宙是最上心的,不惜投入巨资早早进行了布局,而VR头显被视为是元宇宙的入口之一,因此该公司在这一领域也下了大功夫,是VR头显领域的龙头

现在,谁还提元宇宙?2022年,Meta实验室RealityLabs在AR/VR的研发投入已经亏损了137亿美元。比去年(近102亿美元)还要多,简直让人瞠目结舌。也看,生成式AI大爆发,一波ChatGPT狂热潮,让Meta内部重心也有所倾斜。就在前段时间,在公司的季度财报电话会议上,提及「元宇宙」的次数只有7次,而「AI」有23次。做着几乎赔本的买卖,元宇宙就这样凉凉了吗?NoNoNo!Meta近日公布了未来四年VR/AR硬件技术路线图。2025年,发布首款带有显示屏的智能眼镜,以及控制眼镜的

ChatGTP走红以来,围绕ChatGTP开发出来的AI应用层出不穷;让人们感受到了人工智能的强大!近日,Facebook母公司Meta发布了人工智能大型语言模型(LargeLanguageModelMetaAI)简称LLaMA。扎克伯格在社交媒体上称:”由FAIR团队研发的LLaMA模型是目前世界上水平最高的大型语言模型,目标是帮助研究人员推进他们在人工智能领域的工作!“。与其他大型模型一样,MetaLLaMA的工作原理是将一系列单词作为“输入”并预测下一个单词以递归生成文本。据介


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver CS6
Visual web development tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
