search
HomeWeb Front-endHTML TutorialAbout html head reference (meta, link)_html/css_WEB-ITnose

/*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
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
What is the purpose of HTML tags?What is the purpose of HTML tags?Apr 28, 2025 am 12:02 AM

HTMLtagsareessentialforstructuringwebpages,enhancingaccessibility,SEO,andperformance.1)Theyareenclosedinanglebracketsandusedinpairstocreateahierarchicalstructure.2)SemantictagslikeandimproveuserexperienceandSEO.3)Creativetagslikeenabledynamicgraphics

What are self-closing tags? Give an example.What are self-closing tags? Give an example.Apr 27, 2025 am 12:04 AM

Self-closingtagsinHTMLandXMLaretagsthatclosethemselveswithoutneedingaseparateclosingtag,simplifyingmarkupstructureandenhancingcodingefficiency.1)TheyareessentialinXMLforelementswithoutcontent,ensuringwell-formeddocuments.2)InHTML5,usageisflexiblebutr

Beyond HTML: Essential Technologies for Web DevelopmentBeyond HTML: Essential Technologies for Web DevelopmentApr 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 are boolean attributes in HTML? Give some examples.What are boolean attributes in HTML? Give some examples.Apr 25, 2025 am 12:01 AM

Boolean attributes are special attributes in HTML that are activated without a value. 1. The Boolean attribute controls the behavior of the element by whether it exists or not, such as disabled disable the input box. 2.Their working principle is to change element behavior according to the existence of attributes when the browser parses. 3. The basic usage is to directly add attributes, and the advanced usage can be dynamically controlled through JavaScript. 4. Common mistakes are mistakenly thinking that values ​​need to be set, and the correct writing method should be concise. 5. The best practice is to keep the code concise and use Boolean properties reasonably to optimize web page performance and user experience.

How can you validate your HTML code?How can you validate your HTML code?Apr 24, 2025 am 12:04 AM

HTML code can be cleaner with online validators, integrated tools and automated processes. 1) Use W3CMarkupValidationService to verify HTML code online. 2) Install and configure HTMLHint extension in VisualStudioCode for real-time verification. 3) Use HTMLTidy to automatically verify and clean HTML files in the construction process.

HTML vs. CSS and JavaScript: Comparing Web TechnologiesHTML vs. CSS and JavaScript: Comparing Web TechnologiesApr 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.

HTML as a Markup Language: Its Function and PurposeHTML as a Markup Language: Its Function and PurposeApr 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.

The Future of HTML, CSS, and JavaScript: Web Development TrendsThe Future of HTML, CSS, and JavaScript: Web Development TrendsApr 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.

See all articles

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 Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft