Home Web Front-end HTML Tutorial About html head reference (meta, link)_html/css_WEB-ITnose

About html head reference (meta, link)_html/css_WEB-ITnose

Jun 24, 2016 am 11:41 AM

/*This header indicates that if GCF is installed, GCF will be used to render the page. If GCF is not installed, the highest version of the IE kernel will be used for rendering. */


/*This header indicates that the IE browser is simulated with IE7 , IE9 still uses IE9 to render */


/*Header Declaration is beneficial to SEO*/
/*General abbreviation like this is enough*/
/*This is the label prompt of the website*/

/*It can prevent users from touching the enlargement screen*/
/*Generally this way of writing is enough*/
/*This way of writing is more rigorous, but it is not necessary. The effect is the same as above*/
/*width - viewport width height - the height of the viewport
initial-scale - the initial scaling ratio
minimum-scale - the minimum scale that the user is allowed to zoom to
maximum-scale - the maximum scale that the user is allowed to zoom to
user -scalable - whether the user can manually zoom*/

/* This is a method of writing ico in html. In addition, both the js and php background can control the replacement of ico in the original static html*/
/* Among themThis code is the most critical*/


/*The code below can also display the icon in the favorites*/

First: Optimized for handheld devices, mainly for some older and older devices. Browsers that recognize viewports, such as BlackBerry (although BlackBerry has a very low market share in China, there are advantages to multiple companies)


Second: Microsoft's old-fashioned browser (you can not use this, it is basically gone. )


Third: UC Browser (a mobile browser with a strong market share)
Forced vertical screen:

Force full screen:

Application mode:


QQ browser (I won’t say more about Tencent, the user group is there)
Mandatory Portrait screen:

Force full screen:
Application mode:


Fourth: windows phone click without highlight


Sixth: Ignore the numbers in the page and identify them as phone numbers and an email identification

Here you can set address=no;email=no;telephone=no separated by semicolons.



Seventh: Whether to enable the webapp function will delete the default Apple toolbar and menu bar


Eighth: When starting the webapp function, display the top navigation of mobile phone signal, time and battery The color of the bar.

Ninth: Hide the browser navigation bar


How to turn off the automatic keyboard in iOS Capitalization

We know that in iOS, when the virtual keyboard pops up, the keyboard is enabled by default to capitalize the first letter
The mobile version of webkit provides the autocapitalize attribute for the input element, by specifying autocapitalize=" off" to turn off the keyboard's default capitalization

Cache Control





HTTP Refresh
WAP browsers do not support the tag to control caching, but they do know the meaning of the HTTP header "Cache-Control: no-cache". In this case,
The solution is to set the HTTP header in the HTTP response on the server side

/*About forcing full screen IOS*/

/* Regarding the label issue, each browser may have its own setting method. This is the document link address of IOS*/
https://developer.apple.com/library /safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html

About setting the function of adding a home screen to the IOS desktop (can make the web page more like a native app)




Among them, apple-touch-icon-precomposed has rounded corners/highlight modification when added to the desktop, apple-touch-icon only handles rounded corners, no Highlight modification




dns-prefetch is a new content of HTML5. It is mainly used for front-end optimization, reducing DNS requests and pre-resolving DNS. As you can see from the above example, it caches the domain name and automatically obtains it when the user clicks on the address of other pages. This controls the browser to resolve the domain name.

In addition, can set whether the current page requires DNS resolution. content="on" means parsing/content="off" means not parsing. Parsed by default.

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Clair Obscur: Expedition 33 - How To Get Perfect Chroma Catalysts
2 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)

Hot Topics

Java Tutorial
1677
14
PHP Tutorial
1278
29
C# Tutorial
1257
24
HTML: The Structure, CSS: The Style, JavaScript: The Behavior HTML: The Structure, CSS: The Style, JavaScript: The Behavior Apr 18, 2025 am 12:09 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The Future of HTML, CSS, and JavaScript: Web Development Trends The Future of HTML, CSS, and JavaScript: Web Development Trends Apr 19, 2025 am 12:02 AM

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The Future of HTML: Evolution and Trends in Web Design The Future of HTML: Evolution and Trends in Web Design Apr 17, 2025 am 12:12 AM

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

HTML vs. CSS vs. JavaScript: A Comparative Overview HTML vs. CSS vs. JavaScript: A Comparative Overview Apr 16, 2025 am 12:04 AM

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTML vs. CSS and JavaScript: Comparing Web Technologies HTML vs. CSS and JavaScript: Comparing Web Technologies Apr 23, 2025 am 12:05 AM

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

Beyond HTML: Essential Technologies for Web Development Beyond HTML: Essential Technologies for Web Development Apr 26, 2025 am 12:04 AM

To build a website with powerful functions and good user experience, HTML alone is not enough. The following technology is also required: JavaScript gives web page dynamic and interactiveness, and real-time changes are achieved by operating DOM. CSS is responsible for the style and layout of the web page to improve aesthetics and user experience. Modern frameworks and libraries such as React, Vue.js and Angular improve development efficiency and code organization structure.

What is the difference between <strong>, <b> tags and <em>, <i> tags? What is the difference between <strong>, <b> tags and <em>, <i> tags? Apr 28, 2025 pm 05:42 PM

The article discusses the differences between HTML tags , , , and , focusing on their semantic vs. presentational uses and their impact on SEO and accessibility.

HTML as a Markup Language: Its Function and Purpose HTML as a Markup Language: Its Function and Purpose Apr 22, 2025 am 12:02 AM

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

See all articles