Table of Contents
quoting the
Home Web Front-end HTML Tutorial An example introduction to the Meta http-equiv attribute in htni

An example introduction to the Meta http-equiv attribute in htni

Jun 30, 2017 am 10:40 AM
meta Attributes

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

quoting the

meat tag is: <meta http-equiv="parameter" content="parameter variable value">; where the http-equiv attribute mainly has the following parameters:

1 , Expires(period)
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:

1

<meta http-equiv="expires" contect="Wed, 20 Jun 2017 22:33:00 GMT">

Copy after login

Note: GMT time format must be used.

2. Pragma (cache mode)
Description: It is used to set the browser to prevent the browser from accessing the page content from the cache of the local machine. After setting, once you leave the web page, you cannot retrieve it from the cache.
Usage:

1

<meta http-equiv="Pragma" contect="no-cache">

Copy after login

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

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

1

<meta http-equiv="Refresh" contect="2;URL=">

Copy after login

Note: The 2 means that it will automatically refresh 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:

1

<meta http-equiv="Set-Cookie" contect="cookievalue=xxx;expires=Wednesday, 20-Jun-2007 22:33:00 GMT; path=/">

Copy after login

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:

1

<meta http-equiv="Window-target" contect="_top">

Copy after login

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:

1

<meta http-equiv="content-Type" contect="text/html; charset=gb2312">

Copy after login

7, Pics-label (webpage rating)
Usage:

1

<meta http-equiv="Pics-label" contect="">

Copy after login

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

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

1

<meta http-equiv="Page-Enter"    contect="revealTrans(duration=1.0,transtion=    12)">

Copy after login

Set the special effects when leaving the page

1

<meta http-equiv="Page-Exit"    contect="revealTrans(duration=1.0,transtion=    12)">

Copy after login



The value of Duration is the dynamic transition of the web page Time 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 lattice shutters 11 Vertical lattice shutters
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 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 Expand from the lower left corner to the upper right corner 21 Horizontal linear expansion
22 Vertical linear expansion 23 Randomly generate a transition method

9. Clear the cache (re-download when you visit this website again!)

1

<meta http-equiv="cache-control" content="no-cache">

Copy after login



10. Set the expiration time of the web page

1

<meta http-equiv="expires" content="0">

Copy after login

11. Keywords, give Used by search engines

1

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">

Copy after login

12. Page description

1

<meta http-equiv="description" content="This is my page">

Copy after login

The above is the detailed content of An example introduction to the Meta http-equiv attribute in htni. For more information, please follow other related articles on the PHP Chinese website!

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)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks 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)

New affordable Meta Quest 3S VR headset appears on FCC, suggesting imminent launch New affordable Meta Quest 3S VR headset appears on FCC, suggesting imminent launch Sep 04, 2024 am 06:51 AM

The Meta Connect 2024event is set for September 25 to 26, and in this event, the company is expected to unveil a new affordable virtual reality headset. Rumored to be the Meta Quest 3S, the VR headset has seemingly appeared on FCC listing. This sugge

The first open source model to surpass GPT4o level! Llama 3.1 leaked: 405 billion parameters, download links and model cards are available The first open source model to surpass GPT4o level! Llama 3.1 leaked: 405 billion parameters, download links and model cards are available Jul 23, 2024 pm 08:51 PM

Get your GPU ready! Llama3.1 finally appeared, but the source is not Meta official. Today, the leaked news of the new Llama large model went viral on Reddit. In addition to the basic model, it also includes benchmark results of 8B, 70B and the maximum parameter of 405B. The figure below shows the comparison results of each version of Llama3.1 with OpenAIGPT-4o and Llama38B/70B. It can be seen that even the 70B version exceeds GPT-4o on multiple benchmarks. Image source: https://x.com/mattshumer_/status/1815444612414087294 Obviously, version 3.1 of 8B and 70

Six quick ways to experience the newly released Llama 3! Six quick ways to experience the newly released Llama 3! Apr 19, 2024 pm 12:16 PM

Last night Meta released the Llama38B and 70B models. The Llama3 instruction-tuned model is fine-tuned and optimized for dialogue/chat use cases and outperforms many existing open source chat models in common benchmarks. For example, Gemma7B and Mistral7B. The Llama+3 model improves data and scale and reaches new heights. It was trained on more than 15T tokens of data on two custom 24K GPU clusters recently released by Meta. This training dataset is 7 times larger than Llama2 and contains 4 times more code. This brings the capability of the Llama model to the current highest level, which supports text lengths of more than 8K, twice that of Llama2. under

What does META mean? What does META mean? Mar 05, 2024 pm 12:18 PM

META usually refers to a virtual world or platform called Metaverse. The metaverse is a virtual world built by humans using digital technology that mirrors or transcends the real world and can interact with the real world. It is a digital living space with a new social system.

The strongest model Llama 3.1 405B is officially released, Zuckerberg: Open source leads a new era The strongest model Llama 3.1 405B is officially released, Zuckerberg: Open source leads a new era Jul 24, 2024 pm 08:23 PM

Just now, the long-awaited Llama 3.1 has been officially released! Meta officially issued a voice that "open source leads a new era." In the official blog, Meta said: "Until today, open source large language models have mostly lagged behind closed models in terms of functionality and performance. Now, we are ushering in a new era led by open source. We publicly released MetaLlama3.1405B, which we believe It is the largest and most powerful open source basic model in the world. To date, the total downloads of all Llama versions have exceeded 300 million times, and we have just begun.” Meta founder and CEO Zuckerberg also wrote an article. Long article "OpenSourceAIIsthePathForward",

Python's dir() function: View the properties and methods of an object Python's dir() function: View the properties and methods of an object Nov 18, 2023 pm 01:45 PM

Python's dir() function: View an object's properties and methods, specific code example required Summary: Python is a powerful and flexible programming language, and its built-in functions and tools provide developers with many convenient features. One of the very useful functions is the dir() function, which allows us to view the properties and methods of an object. This article will introduce the usage of the dir() function and demonstrate its functions and uses through specific code examples. Text: Python’s dir() function is a built-in function.

Llama3 comes suddenly! The open source community is boiling again: the era of free access to GPT4-level models has arrived Llama3 comes suddenly! The open source community is boiling again: the era of free access to GPT4-level models has arrived Apr 19, 2024 pm 12:43 PM

Llama3 is here! Just now, Meta’s official website was updated and the official announced Llama 38 billion and 70 billion parameter versions. And it is an open source SOTA after its launch: Meta official data shows that the Llama38B and 70B versions surpass all opponents in their respective parameter scales. The 8B model outperforms Gemma7B and Mistral7BInstruct on many benchmarks such as MMLU, GPQA, and HumanEval. The 70B model has surpassed the popular closed-source fried chicken Claude3Sonnet, and has gone back and forth with Google's GeminiPro1.5. As soon as the Huggingface link came out, the open source community became excited again. The sharp-eyed blind students also discovered immediately

It is expected that in 2024, Meta plans to launch a revolutionary AR glasses prototype called 'Orion' It is expected that in 2024, Meta plans to launch a revolutionary AR glasses prototype called 'Orion' Jan 04, 2024 pm 09:35 PM

According to news on December 24, meta, a technology company with huge influence in the social media industry, is now pinning its strong expectations on augmented reality (AR) glasses, a technology considered to be the next generation computing platform. Recently, meta’s technical director Andrew Bosworth revealed in an interview that the company is expected to launch an advanced AR glasses prototype code-named “Orion” in 2024. For a long time, meta has invested in AR technology as much as in other fields. They have invested huge amounts of money, amounting to billions of dollars, aiming to create a revolutionary product comparable to the iPhone. Although last year they announced the end of mass production plans for Orion glasses,

See all articles