HTML meta usage examples

HTML meta usage examples
Example Usage

Copy code
The code is as follows:

<!DOCTYPE html>
<!--[if lt IE 7]><html class="ie6"><![endif]-->
<!--[if IE 7]><html class="ie7"><![endif]-->
<!--[if IE 8]><html class="ie8"><![endif]-->
<!--[if IE 9]><html class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="w3c">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>tinyCss--my css study tidy</title>
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<meta content="my css study tidy" name="description" />
<meta content="css,tidy" name="keywords" />
<meta content="index,follow" name="robots" />
<meta content="tinycss" name="application-name" />
<meta content="no-cache" http-equiv="Cache-Control" />
<meta content="-1" http-equiv="Expires" />
</head>
<body></body>
</html>

[code]
Tip 1:

viewport, when your page has width, for example, 1000px, set width=1000, the compatibility will be better.

Tip 2:

X-UA-Compatible, this attribute is only recognized by IE8 browser. It is a common application to let IE8 render in IE7 mode. So: content="IE=7"; It is a better suggestion not to use this meta, because after all, IE8...

Tip Three:

Expires: The document expiration time. After this time, you need to request it from the server again, and the cache cannot be used; content="-1" theoretically disables the cache.

<<:  Flex layout realizes the layout mode of upper and lower fixed and middle sliding

>>:  About using Alibaba's iconfont vector icon in Vue

Recommend

react+antd.3x implements ip input box

This article shares the specific code of react+an...

Implementation of Docker CPU Limit

1. --cpu=<value> 1) Specify how much availa...

How to set default value for datetime type in MySQL

I encountered a problem when modifying the defaul...

Summary of 6 skills needed to master web page production

It has to be said that a web designer is a general...

Introduction to Linux environment variables and process address space

Table of contents Linux environment variables and...

JavaScript Closures Explained

Table of contents 1. What is a closure? 2. The ro...

Solution to occasional crash of positioning background service on Linux

Problem Description In the recent background serv...

Vue Beginner's Guide: Environment Building and Getting Started

Table of contents Initial Vue Building a Vue deve...

Mysql uses stored procedures to quickly add millions of data sample code

Preface In order to reflect the difference betwee...

How to write the style of CSS3 Tianzi grid list

In many projects, it is necessary to implement th...

WeChat applet picker multi-column selector (mode = multiSelector)

Table of contents 1. Effect diagram (multiple col...

React+Koa example of implementing file upload

Table of contents background Server Dependencies ...

Modify the maximum number of mysql connections and configuration files in docker

1. Find the mysql image docker ps 2. Enter the mi...

Detailed explanation of JDBC database link and related method encapsulation

Detailed explanation of JDBC database link and re...