This time I will show you how to use HTML meta to optimize web pages. What are theprecautions for using HTML meta to optimize web pages? Here are practical cases, let’s take a look.
Summary The
tag provides metadata about the
HTML document. The metadata is not displayed on the page, but is machine-readable. It can be used by browsers (how content is displayed or pages are reloaded), search engines (keywords), or other web services. —— W3School
Page keywords, each web page should have a unique set of keywords that describe the content of the web page.
Use descriptive and representative keywords and phrases that people are likely to search for, and accurately describe the information provided on the web page. Mark content that is too short and search engines may not consider it relevant. Also tags should not exceed 874 characters.
attributevalues correctly.
viewport: Can optimize the display of mobile browsers. If the website is not responsive, do not use initial-scale or disable scaling.The viewport width of most 4.7-5-inch devices is set to 360px; the 5.5-inch device is set to 400px; the iphone6 is set to 375px; the iphone6 plus is set to 414px.
2.
height: height (numeric value) / device-height) (range from 223 to 10,000)3.initial-scale: initial scaling (range from >0 to 10)
4.minimum-scale: the minimum scale to which the user is allowed to zoom
5.maximum-scale: The maximum ratio that users are allowed to zoom to
6.user-scalable: Whether the user can manually zoom in (no, yes)
7.minimal-ui: Can be minimal when the page is loaded Change the upper and lower status bar. (Deprecated)
Note that many people use initial-scale=1 on non-responsive websites, which causes the website to render at 100% width and the user needs to manually move the page or zoom. If user-scalable=no or maximum-scale=1 is used together with initial-scale=1, the user will not be able to zoom in/out the web page to see the entire content.
2. 360 speed browser , Aoyou Browser: Webkit kernel (extreme speed mode)
How to use title tags and paragraph tags in XHTML
In responsive framework How to deal with the automatic line wrapping of the table header
How to use horizontal line annotations and code comments in HTML
The above is the detailed content of How to use HTML meta to optimize web pages. For more information, please follow other related articles on the PHP Chinese website!