Table of Contents
Meta http-equiv attribute detailed explanation (translated), metahttp-equiv
Home Backend Development PHP Tutorial Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial

Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial

Jul 12, 2016 am 09:06 AM
mate

Meta http-equiv attribute detailed explanation (translated), metahttp-equiv

http-equiv, as the name suggests, is equivalent to the file header function of http. It can return some useful information to the browser. information to help display web page content correctly and accurately. The corresponding attribute value is content. The content in content is actually the variable value of each parameter.

Quote The syntax format of the http-equiv attribute of the meat tag is: ; the http-equiv attribute mainly has the following parameters:



1. Expires

Description: Can be used to set the expiration time of the web page. Once a web page expires, it must be retransmitted to the server.
Usage:

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. <meta http-equiv="expires" content="Wed, 20 Jun 2007 22:33:00 GMT">


Note: GMT time format must be used.

2. Pragma (cache mode)
Description: It is used to set up to prohibit the browser from accessing page content from the cache of the local machine. Once you leave the webpage after setting, Cannot be retrieved from Cache
Usage:

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. <meta http-equiv="Pragma" content="no-cache">


Note: With this setting, visitors will not be able to browse offline.

3. Refresh
Description: Automatically refresh and point to a new page.
Usage:

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. <meta http-equiv="Refresh" content="2;URL=http://www.net.cn/">


Note: The 2 refers to automatically refreshing to the URL after staying for 2 seconds.

4. Set-Cookie (cookie setting)

Note: If the web page expires, the saved cookies will be deleted.
Usage:

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. <meta http-equiv="Set-Cookie" content="cookievalue=xxx;expires=Wednesday, 20-Jun-2007 22:33:00 GMT; path =">


Note: GMT time format must be used.

5. Window-target (display window setting)
Description: Force the page to be displayed as an independent page in the current window.
Usage:

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. <meta http-equiv="Window-target" content="_top">


Note: Used to prevent others from calling your own page in the frame.

6. content-Type (display character set setting)
Description: Set the character set used by the page.
Usage:

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. <meta http-equiv="content-Type" content="text/html; charset=gb2312">



7. Pics-label (webpage rating)
Usage:

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. meta http-equiv="Pics-label" contect="">


Note: There is a content setting in IE's internet options that can prevent browsing of some restricted websites, and the restriction level of the website is set through the meta attribute.

8. Page_Enter, Page_Exit
Set special effects when entering the page

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. meta http-equiv="Page-Enter" contect="revealTrans(duration=1.0,transtion= 12)"


Set special effects when leaving the page

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. meta http-equiv="Page-Exit" contect="revealTrans(duration=1.0,transtion= 12)"



The value of Duration is the time for dynamic transition of the web page, in seconds.
Transition is the transition method, its value is 0 to 23, corresponding to 24 transition methods. As shown in the table below:
0 Box-shaped contraction 1 Box-shaped radiation
2 Circular shrinkage 3 Circular radiation
4 From bottom to top 5 From top to bottom
6 From left to right 7 From right to Left
8 Vertical blinds 9 Horizontal blinds
10 Horizontal grid blinds 11 Vertical grid blinds
12 Dissolve at will 13 Expand from the left and right ends to the middle
14 Expand from the middle to the left and right ends 15 From Expand from the upper and lower ends to the middle
16 Expand from the middle to the upper and lower ends 17 Expand from the upper right corner to the lower left corner
18 Expand from the lower right corner to the upper left corner 19 Expand from the upper left corner to the lower right corner
20 From the lower left Expand the corner to the upper right corner 21 Horizontal linear expansion
22 Vertical linear expansion 23 Randomly generate a transition method

9. Clear cache (re-download when visiting this website again!)

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. meta http-equiv="cache-control" content="no-cache">



10. Set the expiration time of the web page

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. meta http-equiv="expires" content="0">



11. Keywords, used by search engines

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
  1. meta http-equiv="keywords" content="keyword1,keyword2,keyword3">



12. Page description

Html code Detailed explanation of Meta http-equiv attributes (transfer), metahttp-equiv_PHP tutorial
    1. meta http-equiv="description" content="This is my page">

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1065326.htmlTechArticleMeta http-equiv attribute detailed explanation (transfer), metahttp-equiv http-equiv, as the name suggests, is equivalent to the file header of http Function, it can return some useful information to the browser to help correct and accurate...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The best time to buy Huawei Mate 60 series, new AI elimination + image upgrade, and enjoy autumn promotions The best time to buy Huawei Mate 60 series, new AI elimination + image upgrade, and enjoy autumn promotions Aug 29, 2024 pm 03:33 PM

Since the Huawei Mate60 series went on sale last year, I personally have been using the Mate60Pro as my main phone. In nearly a year, Huawei Mate60Pro has undergone multiple OTA upgrades, and the overall experience has been significantly improved, giving people a feeling of being constantly new. For example, recently, the Huawei Mate60 series has once again received a major upgrade in imaging capabilities. The first is the new AI elimination function, which can intelligently eliminate passers-by and debris and automatically fill in the blank areas; secondly, the color accuracy and telephoto clarity of the main camera have been significantly upgraded. Considering that it is the back-to-school season, Huawei Mate60 series has also launched an autumn promotion: you can enjoy a discount of up to 800 yuan when purchasing the phone, and the starting price is as low as 4,999 yuan. Commonly used and often new products with great value

Is mate30pro a 5g mobile phone? Is mate30pro a 5g mobile phone? Dec 14, 2022 pm 02:06 PM

Mate30Pro has a 5G network version and a 4G network version A. Only the 5G network version is a 5G phone. Huawei Mate 30 Pro 5G version uses Kirin 990 5G chip, equipped with Balong 5000 5G baseband, supports 5G SA/NSA dual mode, 2G/3G/4G/5G full network, 5G/4G dual card standby, FDD/TDD full frequency band .

It is reported that Huawei's three-fold screen mobile phone is equipped with Kirin 9 series platform/dual hinge technology, 'blue and green big discount iteration' and equipped with 6000 mAh battery It is reported that Huawei's three-fold screen mobile phone is equipped with Kirin 9 series platform/dual hinge technology, 'blue and green big discount iteration' and equipped with 6000 mAh battery Jul 20, 2024 pm 01:39 PM

According to news on July 20, blogger @digitalchat.com published an article today disclosing folding screen information from multiple manufacturers. He claimed that the next thing worth paying attention to is Huawei's three-folding mobile phone, which will be equipped with the Kirin 9 series platform and adopt dual hinge technology. Based on previous reports, the aircraft is said to be integrated with the latest AI technology and is currently progressing smoothly, with mass production scheduled for approximately the third and fourth quarters of this year. In March this year, Huawei announced a patent for a "folding screen device" with a three-fold design. The applicant is Huawei Technologies Co., Ltd. and the inventors are Huang Bo, Zha Peng, Wang Yanxin, Pang Dong, and Yu Weidong. The appearance of the device is expected to be as follows: The blogger also mentioned that the blue-green (vivo/OPPO) iteration of the foldable will be launched as soon as the first quarter of next year. The series of mobile phones will be equipped with the Snapdragon 8Gen4 platform, focusing on "extreme

The difference between Huawei mate30 and mate30pro The difference between Huawei mate30 and mate30pro Feb 18, 2024 pm 03:05 PM

The difference between Huawei Mate30 and Mate30Pro In recent years, Huawei mobile phones have gained wide recognition in the market for their powerful performance and excellent shooting capabilities. The Huawei Mate series has always been the brand's flagship product. The Mate30 and Mate30Pro mobile phones launched by Huawei in 2019 have attracted even more attention. So, what is the difference between Huawei Mate30 and Mate30Pro? First of all, there is an obvious difference in appearance. Mate30P

Huawei offers discounts on Mate X5 and other models, with prices reduced by up to thousands of yuan Huawei offers discounts on Mate X5 and other models, with prices reduced by up to thousands of yuan Aug 29, 2024 pm 03:32 PM

On August 29, Huawei Terminal officially announced that the Huawei Pioneer Thanksgiving Feedback Season has begun! Buy Huawei MateX5, Huawei Pocket2, Huawei novaFlip, Huawei Pura70 series, and Huawei Mate60 series immediately to enjoy purchasing privileges. However, Huawei officials did not elaborate on the specific rights and interests of the "purchase privileges". 1. Huawei Mate , limited to 10 o'clock/16 o'clock/20 o'clock, order placed every hour

What are the dimensions of mate20 What are the dimensions of mate20 Dec 09, 2022 pm 02:24 PM

The screen size of mate20 is 6.53 inches, the body size is 158.2mm*77.2mm*8.3mm, and the body weight is 188 grams (including battery). Mate20 is a mobile phone product released by Huawei in London, UK on October 16, 2018. It uses a 6.53-inch water drop screen on the front, a front lens embedded in the center of the screen, and a full-screen design. The back uses a Leica three-lens and flash matrix arrangement. , inspired by the classic headlight design of supercars.

Exploration at the forefront of technology: Huawei Mate60 series Kirin 9000S reveals the mystery of 8-core 12-thread hyper-threading Exploration at the forefront of technology: Huawei Mate60 series Kirin 9000S reveals the mystery of 8-core 12-thread hyper-threading Sep 08, 2023 pm 12:05 PM

According to news on September 1, two well-known bloggers recently confirmed the new features of Huawei Mate60 series on the Bilibili platform, which attracted widespread attention in the technology community. According to them, the Huawei Mate60 series will be equipped with the Kirin 9000S processor for the first time, and this processor will have an 8-core and 12-thread configuration, becoming the first product among mobile phone processors to support hyper-threading technology. According to Geek Bay, he claimed He is the first blogger to perform hyper-threading adaptation. He confirmed the 8-core 12-thread configuration of the Kirin 9000S processor. The significance of hyper-threading technology is to enable a single processor to perform thread-level parallel computing by simulating the logical core inside a multi-threaded processor, thereby achieving more efficient multi-threaded operating systems and software compatibility. This technology is good

Huawei Mate60 series once again tops sales, although supply remains insufficient Huawei Mate60 series once again tops sales, although supply remains insufficient Oct 10, 2023 pm 08:33 PM

More than a month has passed since Huawei launched the Mate60 series and launched the Pioneer Project on August 29. However, the four models on the market, including Mate60, Mate60Pro, Mate60Pro+ and Mate60RS Extraordinary Master, are still in short supply, confusing consumers. Purchasing these models still requires snap-up. According to the editor’s understanding, a digital blogger expressed his opinions on the Huawei Mate60 series. The reasons for insufficient supply are analyzed. The blogger said that the reason for the Mate60 series being out of stock is not only the slow production speed, but also the insufficient supply of parts in the supply chain. The supply situation of the Mate60 series was unexpected, causing many suppliers to struggle to keep up with the increase in orders. During the National Day holiday, Mate6

See all articles