The setting of the meta tag for mobile development

The setting of the meta tag for mobile development

<meta>The information in the tags in HTML will not be displayed on the page. <meta>The main purpose of defining tags is because it is machine-readable.

<meta>The tag has many functions. It can define keywords in the document, describe the document, and set the expiration time of the webpage with its own attributes.

When we define the keywords or description information of the page, search engine spiders (also known as web crawlers) can use them to search for information on this page

Of course <meta>, the setting of labels is also an essential step in our mobile development!

<meta>grammar

<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">

<meta>Attributes

[

The <meta>most standard viewport settings on mobile

  • The viewport width is consistent with the device
  • The default zoom ratio of the viewport is 1.0
  • Do not allow users to zoom by themselves
  • Maximum allowable zoom ratio 1.0
  • Minimum allowable zoom ratio 1.0

Guess you like

Origin blog.csdn.net/XVJINHUA954/article/details/112588492