Meta declaration annotation steps

Meta declaration annotation steps
Meta declaration annotation steps:

1. Sort out all PC pages that have a one-to-one correspondence with mobile pages for adding Meta statements; PC pages without a corresponding relationship do not need to add Meta.

2. Meta declaration format:

<meta http-equiv="mobile-agent" content="format=[wml|xhtml|html5]; url=url">

Note: The red font part is the content that needs site customization.

According to the protocol language of the mobile page, select one of [wml|xhtml|html5].

The latter in url=url represents the mobile page URL corresponding to the current PC page. The two must be in a one-to-one correspondence (rather than uniformly corresponding to the mobile site homepage)

Meta declaration example:

<meta http-equiv="mobile-agent" content="format=html5;url=http://m.jb51.net/">
<meta http-equiv="mobile-agent" content="format=xhtml;url=https://www.jb51.net/">

3. The webmaster needs to put the Meta statement inside the PC page source code, as follows:

<head>
<meta http-equiv="mobile-agent" content="format=html5;url=http://m.jb51.net/">

</head>

4. When adding content, webmasters should reduce the negative impact caused by incorrect annotations. Things to note are:

a. Mark the correct mobile site URL to avoid corresponding errors and spelling errors
b. Ensure the availability of the adapted mobile page

Effective status:

The Meta statement is marked to indicate that this adaptation solution is only applicable to Baidu mobile search, that is, the adaptation will only take effect when users visit the site through Baidu mobile search; it will not take effect through other channels.

Effective time: If the markings are accurate and the corresponding relationship is correct, Baidu will process it in about seven days, and there will be a delay for old pages. However, Baidu does not guarantee that it will be able to replace the corresponding relationship you submitted in the mobile search results.

<<:  The difference between HTML name id and class_PowerNode Java Academy

>>:  Detailed explanation of the platform bus of Linux driver

Recommend

An in-depth introduction to React refs

1. What is Refs is called Resilient File System (...

Canvas draws scratch card effect

This article shares the specific code for drawing...

How to build a multi-node Elastic stack cluster on RHEL8 /CentOS8

Elastic stack, commonly known as ELK stack, is a ...

Mysql get table comment field operation

I won't say much nonsense, let's just loo...

HTML uses marquee to achieve text scrolling left and right

Copy code The code is as follows: <BODY> //...

Implementation of Docker to build private warehouse (registry and Harbor)

As more and more Docker images are used, there ne...

Linux lossless expansion method

Overview The cloud platform customer's server...

Summary of MySql import and export methods using mysqldump

Export database data: First open cmd and enter th...

jQuery implements font size adjustment case

This article shares the specific code of jQuery t...

Detailed explanation of four solutions to floating problems in CSS layout

1. Cause: The effect after the subbox is set to f...

Detailed explanation of CSS label mode display property

The code looks like this: <!DOCTYPE html> &...

Solution to the problem of repeated pop-up of Element's Message pop-up window

Table of contents 1. Use 2. Solve the problem of ...

Detailed tutorial for installing mysql5.7.21 under Windows system

MySQL Installer provides an easy-to-use, wizard-b...

How to use DCL to manage users and control permissions in MySQL

DCL (Data Control Language): Data control languag...

Solution for front-end browser font size less than 12px

Preface When I was working on a project recently,...