A small collection of html Meta tags

A small collection of html Meta tags

<Head>……</head> indicates the file header of <HTML>, which is used to explain the file name and related information about the file itself. Usually this part of the tags declares this web page: default language encoding, keywords, software used, etc.

Meta tags can be divided into two parts, HTTP title information (HTTP-EQUIV) and page description information (NAME). The following table describes the HTTP header information.

Table 1 HTTP header information (HTTP-EQUIV) table

content-type Display character set <Meta http-equiv="content-type" content ="text/html;charset=GB2312>
refresh Let the page refresh itself or jump at a specified time <Meta http-equiv=”refresh” content=”30;url=http://weibo.com/jjseen”>
expires Specify the expiration time of the web page cache <Meta http-equiv=”expires” content=”0”> <!-- Expires soon-->
cach Whether to allow the browser to access the cache from the local machine <Meta http-equiv="cach" content="NO-cach"> <!-- Disable, do not save web pages, refresh every time you visit -->
set-cookie Whether to disable cookies or make them invalid <Meta http-equiv=”set-cookie” content=”cookievalue=××;expires=Wednesday,21……/>
window-target Force the page to be displayed <Meta http-equiv="window-target" content="_top/> forces the page to be displayed as an independent page in the current window. It can also be used to prevent others from calling the page in a frame. The content options are _blank, _top, _self, and _parent.
page-enter,page-exit Special effects settings for page entry and exit <Meta http-equiv=”page-enter” content=”blendTrans(Duration=0.5)”>This actually uses CSS filters.

Meta's page description information (NAME) is used to explain and describe the web page. The name describes the web page and corresponds to the content, so that search robots can find and classify it. The value of name (name="") specifies the type of information provided, some of which

The value is already defined, such as description, keyword, refresh, etc. You can also specify other arbitrary values, such as creationdate, documentID, Level, etc. The following table shows the specific syntax:

Table 2 HTTP description information table

keywords Declare the keywords of the web page and let the search engine automatically complete the keyword index. <Meta name=”keywords” content=”HTML,HTML header,HTTP-EQUIV,meta”/>
Description Describes the main content of the website. Search engines will also use this attribute to retrieve the website, but it will not be displayed. <Meta name=”Description” content=”This blog post explains HTML head related tags”/>
Robots Robot wizard, used to tell the robot which pages need to be indexed and which do not. <Meta name=”Robots” contents=”All|None|Index|Noindex|Follow|NoFollow”>
all: Files will be indexed. None files are not indexed and links on the page cannot be searched. (Same effect as "NoIndex,NoFollow").Index: The file will be retrieved. Follow: Links on the page can be queried.
Author Page Author <Meta name=”Author” content=”jjseen,[email protected]”/>
Copyright Used to mark copyright <Meta name=”Copyrightng” content=”Copyright”/>
Generator Editor
revisit-after Set the revisit interval in days. (I am still not sure what this tag does) <Meta name=”revisit-after” content=”7 days”>

Meta has some other tags, which are also organized as shown in the table below:

Table 3 Meta other tags

scheme A meaningful label describing the content <Meta scheme=”ISBN” name=”identifier” content=”0-14-042152”>
link Link to a file <link href=”logo.ico” rel=”Shortcut Icon”>Small icon displayed after adding to favorites, small icon on the address bar
base Base Link <base href=”http://weibo.com/jjseen” target=”_blank”>After using this statement, all relative paths on the web page will automatically be added with the previous address when linking.

<<:  How to deploy the crownblog project to Alibaba Cloud using docker

>>:  Difference between MySQL update set and and

Recommend

Implementation of multiple instances of tomcat on a single machine

1. Introduction First of all, we need to answer a...

How to use JS to implement waterfall layout of web pages

Table of contents Preface: What is waterfall layo...

Summary of knowledge points about null in MySQL database

In the MySQL database, null is a common situation...

Implementation of Docker private library

Installing and deploying a private Docker Registr...

HTML validate HTML validation

HTML validate refers to HTML validation. It is the...

Introduction to building a DNS server under centos7

Table of contents 1. Project environment: 2: DNS ...

Div exceeds hidden text and hides the CSS code beyond the div part

Before hiding: After hiding: CSS: Copy code The co...

An example of how Vue implements four-level navigation and verification code

Effect: First create five vue interfaces 1.home.v...

Example code for converting Mysql query result set into JSON data

Mysql converts query result set into JSON data Pr...

Solve the problem of Syn Flooding in MySQL database

Syn attack is the most common and most easily exp...

Navicat cannot create function solution sharing

The first time I wrote a MySQL FUNCTION, I kept g...

Summary of commonly used performance test scripts for VPS servers

Here is a common one-click performance test scrip...

Steps to enable TLS in Docker for secure configuration

Preface I had previously enabled Docker's 237...

19 MySQL optimization methods in database management

After MySQL database optimization, not only can t...

Simple example of using Docker container

Table of contents 1. Pull the image 2. Run the im...