Basic page settings
<!-- 页面描述 --> <meta name="description" content="页面描述,控制在150字以内" /> <!-- 页面关键词 --> <meta name="keywords" content="关键字列表" /> <!-- 作者信息 --> <meta name="author" content="basecss, i@basecss.net" /> <!-- 页面图标 --> <link rel="shortcut icon" type="image/icon" href="icon.ico" /> <!--解决360浏览器网页显示异常 --> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
http information settings
<!-- 内容语言 --> <meta http-equiv="content-language" content="zh-CN" /> <!-- 自动跳转 --> <meta http-equiv="refresh" content="3; URL=http://www.baidu.com" /> <!-- 编码设置(可以直接用 charset="utf-8" 代替) --> <meta http-equiv="content-type" content="UTF-8" /> <!-- 缓存信息 --> <meta http-equiv="expires" content="GMT 格式时间" /> <!-- 禁止缓存 --> <meta http-equiv="pragma" content="no-cache" /> <!-- 缓存控制 --> <meta http-equiv="Cache-control" content="max-age=5" /> <!-- ****************************** public: 允许任何人缓存此页; private: 不允许缓存服务器缓存此页; no-cache: 相应不能被缓存; no-stroe: 请求相应都不能被缓存; max-age: 最大生存周期(秒); min-fresh: 客户端愿意接受的最小缓存时长,缓存时间超过该值会要求向服务器查新; max-stale: 接受超过缓存时限但不超过该值的数据; ******************************* --> <!-- 添加 cookie --> <meta http-equiv="set-cookie" content="cookieName=cookieValue;expires=GMT 格式时间;path=/" /> <!-- 页面加载动画 --> <meta http-equiv="page-enter" content="blandtrans(duration=0.5)" /> <!-- 页面退出动画 --> <meta http-equiv="page-exit" content="revealtrans(duration=0.5,transtion=1)" /> <!-- ****************************** transtion 可以取0-23的整数,分别表示: 0.盒状收缩; 1.盒状展开; 2.圆形收缩; 3.圆形展开; 4.向上擦除; 5.向下擦除; 6.向左擦除; 7.向右擦除; 8.垂直百叶窗; 9.水平百叶窗; 10.纵向棋盘; 11.横向棋盘; 12.溶解; 13.左右向中间收缩; 14.中间向左右展开; 15.上下向中间收缩; 16.中间向上下展开; 17.阶梯向左下; 18.阶梯向左上; 19.阶梯向右下; 20.阶梯向右上; 21.水平随机线; 22.垂直随机线; 23.随机; ****************************** -->
Search engine related settings
<!-- 设置搜索引擎抓取间隔 --> <meta name="visit-after" content="10 days"> <!-- 搜索引擎抓取设置 --> <meta name="robots" content="index, follow" /> <!-- ****************************** index: 允许搜索引擎抓取此页; noindex: 不允许搜索引擎抓取此页; follow: 允许搜索引擎抓取子页面; nofollow: 允许搜索引擎抓取子页面; none: 等同于 noindex 和 nofollow all: 等同于 index 和 follow ******************************* -->
Mobile related settings
Basic settings for mobile development
<!-- 声明文档字符编码 --> <meta charset="utf-8"> <!-- IE 兼容性设置 --> <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> <!-- 用最新模式渲染,优先使用 chrome --> <!-- 为移动设备设置 viewport --> <meta name="viewport" content="width=device-width,initial-scale=1, minium-scale=1, user-scalable=no" /> <!-- iOS 移动设备添加主屏幕标题设置 --> <meta name="apple-mobile-web-app-title" content="My App" /> <!-- 是否启用全屏模式 --> <meta name="apple-mobile-web-app-capable" content="yes" /> <!-- 全屏时状态栏颜色设置 --> <meta name="apple-mobile-web-status-bar-style" content="black-translucent" /> <!-- 禁用电话号码自动识别 --> <meta name="format-detection" content="telephone=no" /> <!-- 禁用邮箱自动识别 --> <meta name="format-detection" content="email=no" /> <!-- 添加智能 App 广告条 Smart App Banner(iOS 6+ Safari), 默认禁用 --> <meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL" />
The above is the detailed content of Common usage of meta and link tags. For more information, please follow other related articles on the PHP Chinese website!

HTMLtagsareessentialforwebdevelopmentastheystructureandenhancewebpages.1)Theydefinelayout,semantics,andinteractivity.2)SemantictagsimproveaccessibilityandSEO.3)Properuseoftagscanoptimizeperformanceandensurecross-browsercompatibility.

A consistent HTML encoding style is important because it improves the readability, maintainability and efficiency of the code. 1) Use lowercase tags and attributes, 2) Keep consistent indentation, 3) Select and stick to single or double quotes, 4) Avoid mixing different styles in projects, 5) Use automation tools such as Prettier or ESLint to ensure consistency in styles.

Solution to implement multi-project carousel in Bootstrap4 Implementing multi-project carousel in Bootstrap4 is not an easy task. Although Bootstrap...

How to achieve the effect of mouse scrolling event penetration? When we browse the web, we often encounter some special interaction designs. For example, on deepseek official website, �...

The default playback control style of HTML video cannot be modified directly through CSS. 1. Create custom controls using JavaScript. 2. Beautify these controls through CSS. 3. Consider compatibility, user experience and performance, using libraries such as Video.js or Plyr can simplify the process.

Potential problems with using native select on mobile phones When developing mobile applications, we often encounter the need for selecting boxes. Normally, developers...

What are the disadvantages of using native select on your phone? When developing applications on mobile devices, it is very important to choose the right UI components. Many developers...

Use Three.js and Octree to optimize collision handling of third-person roaming in the room. Use Octree in Three.js to implement third-person roaming in the room and add collisions...


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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

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),

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.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
