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

Font Treasure House 50 exquisite free English font resources Part 2

Designers have their own font library, which allo...

Linux remote control windows system program (three methods)

Sometimes we need to remotely run programs on the...

How to use gdb to debug core files in Linux

1.core file When a Segmentation fault (core dumpe...

How to support full Unicode in MySQL/MariaDB

Table of contents Introduction to utf8mb4 UTF8 by...

The implementation of event binding this in React points to three methods

1. Arrow Function 1. Take advantage of the fact t...

js dynamically implements table addition and deletion operations

This article example shares the specific code for...

A quick solution to accidentally delete MySQL data (MySQL Flashback Tool)

Overview Binlog2sql is an open source MySQL Binlo...

Practical MySQL + PostgreSQL batch insert update insertOrUpdate

Table of contents 1. Baidu Encyclopedia 1. MySQL ...

LINUX Checks whether the port is occupied

I have never been able to figure out whether the ...

MySQL 8.0.15 installation tutorial for Windows 64-bit

First go to the official website to download and ...

How to deploy SpringBoot project using Docker

The development of Docker technology provides a m...

Tutorial on how to use profile in MySQL

What is a profile? We can use it when we want to ...

Web Design Tips: Simple Rules for Page Layout

Repetition: Repeat certain page design styles thr...