Home  >  Article  >  Web Front-end  >  Detailed introduction to HTML head tag

Detailed introduction to HTML head tag

巴扎黑
巴扎黑Original
2017-06-27 10:20:271654browse

This article is based on Yisi's article, and provides an expanded summary to introduce the meaning and usage scenarios of each tag and element in commonly used heads. There are many tags and elements in the HTML head part, which involve browser rendering of web pages, SEO, etc. Each browser core and each domestic browser manufacturer have their own tag elements, which results in a lot of differences. In the era of mobile Internet, the head structure and meta elements of mobile terminals are even more important. Understanding the meaning of each tag and writing a head tag that meets your own needs is the purpose of this article. This article is based on Yishi's article and provides an expanded summary to introduce the meaning and usage scenarios of each tag and element in commonly used heads.

DOCTYPE

DOCTYPE(Document Type), this declaration is located at the frontmost position in the document, before the html tag, this tag informs the browser Which HTML or XHTML specification does the server document use?

DTD (Document Type Definition) declaration starts with , is not case-sensitive, and has no content in front. If there is other content (except spaces), the browser will open a weird mode under IE ( quirks mode) renders web pages. Public DTD, the name format is registration // organization // type tag // language, registration refers to whether the organization is registered by the International Organization for Standardization (ISO), + means yes, - means no. Organization is the name of the organization, such as: W3C. The type is usually DTD. A tag is a designated public text description, that is, a unique descriptive name for the referenced public text, which can be followed by a version number. The final language is the ISO 639 language identifier of the DTD language, such as: EN for English, ZH for Chinese. XHTML 1.0 can declare three DTD types. Represents strict version, transitional version, and frame-based HTML document respectively.

●HTML 4.01 strict


##XML/HTML Code Copy content to clipboard

  1. >
●HTML 4.01 Transitional




XML/HTML CodeCopy content to clipboard

    ##>

    ##●HTML 4.01 Frameset



##XML/HTML Code

Copy content to clipboard

>

  1. ●The latest HTML5 introduces more concise writing. It is forward and backward compatible and is recommended for use.



##XML/HTML Code


Copy content to clipboard

>

  1. doctype has two main purposes in HTML.

    ●Verify the validity of documents.
It tells the user agent and validator what DTD this document is written according to. This action is passive. Every time the page is loaded, the browser does not download the DTD and check the validity. It is only enabled when the page is manually verified.

●Determine the browser's rendering mode

For actual operations, inform the browser which parsing algorithm to use when reading the document. If it is not written, the browser will parse the code according to its own rules, which may seriously affect the html layout. Browsers have three ways to parse HTML documents.

●Non-weird (standard) mode

●Weird mode

●Partially weird (nearly standard) mode About the document mode, browser mode, and strict mode of

IE browser

, weird mode, DOCTYPE tag, verbose mode? standard! Content.



charset

Declare the character encoding used in the document,

XML/HTML Code


Copy content to clipboard

  1. <meta charset="utf-8">

html5 The previous web page would have written like this:


##XML/HTML CodeCopy Content to clipboard

  1. ##<

    meta http-equiv="Content- Type" content="text/html; charset=utf-8">

  2. These two are equivalent. You can read the details step by step: vs , so it is recommended to use the shorter one, which is easier to use. memory.


lang attribute

Simplified Chinese


##XML/HTML Code

Copy content to clipboard

##<
  1. html

    lang=" zh-cmn-Hans"> Traditional Chinese

    ##XML /HTML Code


    Copy content to clipboard

    <

      html
    1. lang="zh-cmn-Hant">## Why lang="zh-cmn-Hans" instead of what we usually write As for lang="zh-CN", please read further: The statement at the head of the page should be lang="zh" or lang="zh-cn". Use the latest version of IE and Chrome first



      XML/HTML Code

      Copy content to clipboard

      ##<meta

        http-equiv
      1. =

        "X-UA-Compatible" content="IE=edge,chrome=1" /> 360 Using Google Chrome Frame

        XML/HTML Code

        Copy content to clipboard


        ##< ;meta

        name
          =
        1. "renderer"

          content="webkit"> 360 browser will immediately switch to the corresponding speed core after reading this tag. Also add

        2. XML/HTML Code

        to be on the safe side


        <meta

        http-equiv
          =
        1. "X-UA-Compatible"

          content= "IE=Edge,chrome=1">## The effect that can be achieved by writing this way is that if Google Chrome Frame is installed, then Use GCF to render the page. If GCF is not installed, use the highest version of the IE kernel for rendering. Related links: Browser kernel control Meta tag documentation Baidu prohibits transcoding

          When you open a webpage through Baidu mobile phone, Baidu may transcode your webpage , take off your clothes, and put an advertisement for dog skin plaster on your body. To do this, you can add


          ##XML/HTML Code## in the head
          #Copy content to clipboard

          1. <meta http-equiv="Cache-Control" content="no-siteapp" />

          ## Related links: SiteApp Transcoding Statement




          SEO optimization part

          Page title tag (head header is required) </strong><br><br></p> <p class="codeText"><br></p>##XML/HTML Code<p class="codeHead"><span class="lantxt">Copy content to clipboard</span><span style="CURSOR: pointer" class="copyCodeText"></span></p> <ol class="dp-xml list-paddingleft-2">##<<li><p>title<span class="tag"></span>><span class="tag-name">your title</span></<span class="tag"></span>title<span class="tag"></span>><span class="tag-name"></span><span class="tag"></span>##Page keywordskeywords </ol> <p><br><br></p>##XML/HTML Code<p class="codeText"><br>Copy content to clipboard</p> <p class="codeHead"><span class="lantxt"></span><span style="CURSOR: pointer" class="copyCodeText"></span><</p><ol class="dp-xml list-paddingleft-2">meta<li> <p>name<span class="tag">=</span>"keywords"<span class="tag-name"> </span>content<span class="attribute">=</span>"your keywords"<span class="attribute-value"></span>><span class="attribute"></span><span class="attribute-value"></span><span class="tag"></span>Page description content description </p> <p><br><br>## XML/HTML Code</p> <p class="codeText">Copy content to clipboard<br></p> <p class="codeHead"><span class="lantxt"></span><span style="CURSOR: pointer" class="copyCodeText"><</span></p>meta<ol class="dp-xml list-paddingleft-2"> <li>name<p>=<span class="tag">"description"</span> <span class="tag-name">content</span>=<span class="attribute">"your description"</span><span class="attribute-value">></span><span class="attribute"></span><span class="attribute-value"></span> Define web page author author <span class="tag"></span></p> <p>##XML/HTML Code<br></p>Copy content to clipboard<p class="codeText"><br></p> <p class="codeHead"><span class="lantxt"></span><<span style="CURSOR: pointer" class="copyCodeText"></span>meta</p> <ol class="dp-xml list-paddingleft-2">name<li>=<p>"author"<span class="tag"> </span>content<span class="tag-name">=</span>"author ,email address"<span class="attribute"></span>><span class="attribute-value"></span><span class="attribute"></span><span class="attribute-value"> Define the web search engine indexing method, robotterms is a set of values ​​separated by English commas ",", usually there are The following values ​​are available: none, noindex, nofollow, all, index and follow. </span><span class="tag"></span>XML/HTML Code</p>Copy content to clipboard<p><br><br><span class="lantxt"></span><span style="CURSOR: pointer" class="copyCodeText"></span># #<</p><p class="codeText">meta<br/> </p>name<ol class="dp-xml list-paddingleft-2">=<li>"robots"<p> <span class="tag">content</span>=<span class="tag-name">"index,follow"</span><span class="attribute">><span class="attribute-value"></span><span class="attribute"></span>Related links: WEB1038 - Tag contains an invalid value<span class="attribute-value"></span><span class="tag"></span>viewport</p> <p> Viewport can make the layout display better on mobile browsers. Usually write<br><br><strong><a href="http://www.php.cn/css/css-rwd-viewport.html" target="_blank"></a>##XML/HTML Code</strong></p>Copy the content to the clipboard<p></p> <p class="codeText"><br></p> <p class="codeHead"><<span class="lantxt"></span>meta<span style="CURSOR: pointer" class="copyCodeText"> </span>name</p>=<ol class="dp-xml list-paddingleft-2">"viewport"<li> <p>content<span class="tag">=</span>"width=device-width , initial-scale=1.0"<span class="tag-name"></span>><span class="attribute"></span><span class="attribute-value"></span>##width=device-width will cause the iPhone 5 to open the page in WebApp full-screen mode after adding it to the home screen Black edges appear (http://bigc.at/ios-webapp-viewport-meta.orz)<span class="attribute"></span>content Parameters: <span class="attribute-value"></span>width viewport width (value/device-width)<span class="tag"> height viewport height (value/device-height)</span>initial-scale initial scaling ratio</p>maximum-scale maximum scaling ratiominimum-scale minimum scaling ratiouser-scalable whether to allow user scaling (yes/ no)<p>minimal-ui A new attribute in iOS 7.1 beta 2 can minimize the upper and lower status bars when the page loads. This is a Boolean value and can be written directly like this: </p> <p></p> <p></p> <p class="codeHead"><span class="lantxt">XML/HTML Code</span><span style="CURSOR: pointer" class="copyCodeText">Copy content to clipboard</span></p> <ol class="dp-xml list-paddingleft-2"><li><p>##<<span class="tag"></span>meta<span class="tag-name"> </span>name<span class="attribute">=</span>"viewport"<span class="attribute-value"> </span>content<span class="attribute">=</span>"width=device-width, initial-scale=1, minimal-ui"<span class="attribute-value"></span>><span class="tag"></span></p></li></ol>And if your website is not responsive, please do not use initial-scale or disable scaling. <p></p> <p class="codeText"><br></p> <p class="codeHead">XML/HTML Code<span class="lantxt"></span>Copy content to clipboard<span style="CURSOR: pointer" class="copyCodeText"></span></p> <ol class="dp-xml list-paddingleft-2"><li><p><<span class="tag"></span>meta<span class="tag-name"> </span>name<span class="attribute">=</span>"viewport"<span class="attribute-value"> </span>content<span class="attribute">=</span>"width=device-width,user- scalable=yes"<span class="attribute-value"></span>><span class="tag"></span></p></li></ol>Related links: Viewport for non-responsive design <p><br> Suitable for iPhone 6 and iPhone 6plus then Need to write: <br><br><span class="lantxt">XML/HTML Code<br></span>Copy content to clipboard<span style="CURSOR: pointer" class="copyCodeText"></span></p> <p class="codeText"><br></p> <ol class="dp-xml list-paddingleft-2"> <li><p><<span class="tag"></span>meta<span class="tag-name"> </span>name<span class="attribute">=</span>"viewport"<span class="attribute-value"> </span>content<span class="attribute">=</span>"width=375"<span class="attribute-value"></span>><span class="tag"></span></p></li> <li><p><<span class="tag"></span>meta<span class="tag-name"> </span>name<span class="attribute">=</span>"viewport "<span class="attribute-value"> </span>content<span class="attribute">=</span>"width=414"<span class="attribute-value"></span>><span class="tag"></span></p></li>##Mostly 4.7~5 inches The viewport width of Android devices is set to 360px, but it is 375px on iPhone 6. The viewport width of most 5.5-inch Android machines (such as Samsung Note) is 400, and it is 414px on iPhone 6 plus. </ol> <p><br> ios device<br><strong><br> Title added to the home screen (new in iOS 6)<br></strong></p> <p class="codeText"><br></p> XML/HTML Code<p class="codeHead"><span class="lantxt">Copy content to clipboard</span><span style="CURSOR: pointer" class="copyCodeText"></span></p> <ol class="dp-xml list-paddingleft-2"><li><<p><span class="tag">meta</span> <span class="tag-name">name</span>=<span class="attribute">"apple-mobile-web-app-title"</span> <span class="attribute-value">content</span>=<span class="attribute">"Title"</span><span class="attribute-value">> <span class="tag">< !-- Title added to the home screen (new in iOS 6) --></span><span class="comments"></span> </li></ol>Whether to enable WebApp full-screen mode<p><br></p> <p class="codeText"><br></p>XML/HTML Code<p class="codeHead"><span class="lantxt">Copy content to clipboard</span><span style="CURSOR: pointer" class="copyCodeText"></span></p> <ol class="dp-xml list-paddingleft-2">##<<li><p>meta<span class="tag"> </span>name<span class="tag-name">=</span>"apple-mobile-web-app-capable"<span class="attribute"> </span>content<span class="attribute-value">=</span>"yes"<span class="attribute"> </span> /><span class="attribute-value"> </span><!-- Whether to enable WebApp full-screen mode --><span class="tag"></span><span class="comments"></span>##Set the background color of the status bar </ol> <p></p> <p class="codeText">XML/HTML Code<br></p>Copy content to clipboard<p class="codeHead"><span class="lantxt"></span><span style="CURSOR: pointer" class="copyCodeText"></span></p><<ol class="dp-xml list-paddingleft-2"> <li>meta<p> <span class="tag">name</span>=<span class="tag-name">"apple-mobile-web-app-status-bar-style"</span> <span class="attribute">content</span>=<span class="attribute-value">"black- translucent"</span> <span class="attribute">/><span class="attribute-value"></span><span class="tag"></span><!-- Set the background color of the status bar, only in `"apple-mobile-web Effective when -app-capable" content="yes"` --><li> <p>Only takes effect when "apple-mobile-web-app-capable" content="yes" <br><br> content parameter: <br><br>default default value. <br>black The background of the status bar is black. <br>black-translucent The background of the status bar is black and translucent. If set to default or black , web page content starts from the bottom of the status bar. If set to black-translucent, the web page content fills the entire screen and the top will be obscured by the status bar. <br><br><strong>Disable digit recognition as a phone number</strong></p> <p class="codeText"><br></p> <p class="codeHead">##XML/HTML Code<span class="lantxt"></span>Copy content To clipboard<span style="CURSOR: pointer" class="copyCodeText"></span></p> <ol class="dp-xml list-paddingleft-2"> <li>##<<p><span class="tag">meta</span> <span class="tag-name">name</span>=<span class="attribute">"format-detection"</span> <span class="attribute-value">content</span>=<span class="attribute">"telephone=no"</span> <span class="attribute-value">/> <span class="tag"><!--Disable digit recognition as a phone number --> </span><span class="comments"></span> </li>iOS icon</ol> <p> rel parameter: apple-touch-icon </p>Picture<p> is automatically processed into rounded corners and highlights. apple-touch-icon-precomposed prohibits the system from automatically adding effects and displays the original design directly. iPhone and iTouch, default 57x57 pixels, must have the <a href="http://www.php.cn/css/css-rwd-images.html" target="_blank"></a> code as follows:</p> <p><link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-57x57 -precomposed.png" /> <!-- iPhone and iTouch, default 57x57 pixels, must have--></p> <p class="msgborder"><br> iPad, 72x72 pixels, optional, but recommended </p> <p>The code is as follows:</p> <p><link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72x72-precomposed.png" /> <!-- iPad, 72x72 pixels, optional, but recommended--></p> <p class="msgborder"><br> Retina iPhone and Retina iTouch, 114x114 pixels, optional, but recommended </p> <p> The code is as follows: </p> <p><link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png" /> <! -- Retina iPhone and Retina iTouch, 114x114 pixels, optional, but recommended --></p> <p class="msgborder"><br> Retina iPad, 144x144 pixels, optional, but recommended </p> <p> The code is as follows :</p> <p><link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png" /> <!-- Retina iPad, 144x144 pixels, optional but recommended--></p> <p class="msgborder"><br> The IOS icon size is 180×180 on iPhone 6 plus and 120x120 on iPhone 6. To adapt to iPhone 6 plus, you need to add this </p> <p> code as follows:</p> <p><link rel="apple-touch-icon-precomposed" sizes="180x180" href= "retinahd_icon.png"></p> <p class="msgborder"><br></p>iOS splash screen<p><strong><br>Official documentation:<br>https://</strong>developer.apple.com/ library/ios/qa/qa1686/_index.html <a href="http://www.php.cn/wiki/373.html" target="_blank">Reference article: http://wxd.ctrip.com/blog/2013/09/ios7-hig-24/ </a><br>The startup screen of iPad is Excluding the status bar area. <br><br> iPad portrait screen 768 x 1004 (standard resolution) </p> <p>The code is as follows:</p> <p><link rel="apple-touch-startup-image" sizes="768x1004 " href="/splash-screen-768x1004.png" /> <!-- iPad vertical screen 768 x 1004 (standard resolution) --></p> <p class="msgborder"><br> iPad vertical screen 1536x2008 ( Retina</p> <p>The code is as follows:</p> <p><link rel="apple-touch-startup-image" sizes="1536x2008" href="/splash-screen-1536x2008.png" /> <!-- iPad portrait screen 1536x2008 (Retina) --></p> <p class="msgborder"><br> iPad landscape screen 1024x748 (standard resolution) </p> <p>The code is as follows:</p> <p>< ;link rel="apple-touch-startup-image" sizes="1024x748" href="/Default-Portrait-1024x748.png" /> <!-- iPad landscape 1024x748 (standard resolution) --> ;</p><p class="msgborder"><br/> iPad landscape screen 2048x1496 (Retina) </p><p>The code is as follows:</p><p><link rel="apple-touch-startup-image" sizes="2048x1496 " href="/splash-screen-2048x1496.png" /> <!-- iPad landscape screen 2048x1496 (Retina) --></p> <p class="msgborder"><br> The startup screen of iPhone and iPod touch includes Status bar area. </p> <p> iPhone/iPod Touch portrait screen 320x480 (standard resolution)</p> <p>The code is as follows:</p> <p class="msgborder"><link rel="apple-touch-startup-image" href="/splash-screen-320x480.png" /> <!-- iPhone/iPod Touch vertical screen 320x480 (standard resolution) - -><br></p> <p> iPhone/iPod Touch portrait screen 640x960 (Retina)</p> <p>The code is as follows:</p> <p class="msgborder"><link rel="apple-touch-startup-image " sizes="640x960" href="/splash-screen-640x960.png" /> <!-- iPhone/iPod Touch portrait screen 640x960 (Retina) --><br></p> <p> iPhone 5/iPod Touch 5 vertical screen 640x1136 (Retina)</p> <p>The code is as follows:</p> <p class="msgborder"><link rel="apple-touch-startup-image" sizes="640x1136" href="/splash -screen-640x1136.png" /> <!-- iPhone 5/iPod Touch 5 vertical screen 640x1136 (Retina) --><br></p> <p> Add Smart App Smart App Banner (iOS 6+ Safari) </p> <p>The code is as follows:</p> <p class="msgborder"><meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument= myURL"> <!-- Add Smart App Advertising Banner Smart App Banner (iOS 6+ Safari) --><br></p> <p> The corresponding image size for iPhone 6 is 750×1294, and for iPhone 6 Plus The corresponding value is 1242×2148. </p> <p>The code is as follows:</p> <p class="msgborder"><link rel="apple-touch-startup-image" href="launch6.png" media="(device-width: 375px)"><br><link rel="apple-touch-startup-image" href="launch6plus.png" media="(device-width: 414px)"><br></p> <p><strong>Windows 8 <br></strong> Windows 8 tile color</p> <p>The code is as follows:</p> <p class="msgborder"><meta name="msapplication-TileColor" content="#000"/> <!-- Windows 8 tile color--><br></p> <p> Windows 8 tile icon</p> <p>code is as follows:</p> <p class="msgborder"><meta name="msapplication-TileImage" content= "icon.png"/> <!-- Windows 8 tile icon--><br></p> <p> rss subscription</p> <p>The code is as follows:</p> <p class="msgborder">< link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml" /> <!-- Add RSS subscription--><br></p> <p> favicon icon</p> <p>The code is as follows:</p> <p class="msgborder"><link rel="shortcut icon" type="image/ico" href="/favicon.ico" /> <!- - Add favicon icon --><br></p> <p>For a more detailed introduction to favicon, please refer to https://github.com/audreyr/favicon-cheat-sheet<br><br><strong>Mobile version meta <br></strong><span class="lantxt">XML/HTML Code</span><span style="CURSOR: pointer" class="copyCodeText">Copy content to clipboard</span></p> <ol class="dp-xml list-paddingleft-2"> <li><p>##<<span class="tag"></span>meta<span class="tag-name"> </span>name<span class="attribute">=</span>"viewport"<span class="attribute-value"> </span>content<span class="attribute">=</span>"width=device-width, initial-scale=1, user-scalable= no"<span class="attribute-value"> </span>/><span class="tag"></span></p></li> <li>##<<p><span class="tag">meta</span> <span class="tag-name">name</span>=<span class="attribute">"apple-mobile-web-app-capable"</span> <span class="attribute-value">content</span>=<span class="attribute">"yes"</span> <span class="attribute-value">/><span class="tag"></span> </li> <li><<p><span class="tag">meta</span> <span class="tag-name">name</span>=<span class="attribute">"apple-mobile-web-app-status-bar-style"</span> <span class="attribute-value">content</span>=<span class="attribute">"black"</span> <span class="attribute-value">/><span class="tag"></span> </li>##<<li><p>meta<span class="tag"> </span>name<span class="tag-name">="format-detection"</span>content<span class="attribute">="</span>telephone<span class="attribute-value">=</span>no<span class="attribute">, </span>email<span class="attribute-value">=</span> no<span class="attribute">" </span>/><span class="attribute-value"></span><span class="tag"></span>##<</li><li>meta<p> <span class="tag">name</span>=<span class="tag-name">"viewport"</span> <span class="attribute">content</span>=<span class="attribute-value">"width=device-width, initial-scale=1, user-scalable=no"</span> <span class="attribute">/> <span class="attribute-value"><li><p><span class="tag"><</span><span class="tag-name">meta</span> <span class="attribute">name</span>=<span class="attribute-value">"apple-mobile-web-app-capable"</span> <span class="attribute">content</span>=<span class="attribute-value">"yes"</span> <span class="tag">/></span><span class="comments"><!--Delete Apple's default toolbar and menu bar --></span></p></li> <li><p>##<<span class="tag"></span>meta<span class="tag-name"> </span>name<span class="attribute">=</span>"apple-mobile-web-app-status-bar- style"<span class="attribute-value"> </span>content<span class="attribute">=</span>"black"<span class="attribute-value"> </span>/><span class="tag"></span><!-- Set the Apple toolbar color --><span class="comments"></span></p></li> <li>##<<p><span class="tag">meta</span> <span class="tag-name">name</span>=<span class="attribute">"format-detection"</span> <span class="attribute-value"> content</span>=<span class="attribute">"telphone=no, email=no"</span> <span class="attribute-value">/></li></span><span class="tag"><!-- Ignore the numbers in the page and identify them as phone numbers, ignore email identification - -></span><span class="comments"></span>##<!-- Enable the 360 ​​browser’s speed mode (webkit) --><li><p><span class="comments"></span></p></li><<li><p>meta<span class="tag"> </span>name<span class="tag-name">=</span>"renderer"<span class="attribute"> </span>content<span class="attribute-value">=</span>"webkit "<span class="attribute"></span>><span class="attribute-value"></span><span class="tag"></span>##<!-- Avoid IE using compatibility mode --><li> <p> <span class="comments"></span></p><</li><li>meta<p> <span class="tag">http-equiv</span>=<span class="tag-name">"X-UA-Compatible"</span> <span class="attribute">content</span>=<span class="attribute-value">"IE=edge"</span><span class="attribute">><span class="attribute-value"></span><span class="tag"></span>#<!-- Optimized for handheld devices, mainly for some Old browsers that do not recognize viewport, such as BlackBerry --></li> <li><p><span class="comments">##<</span></p>meta</li> <li>name<p>=<span class="tag">"HandheldFriendly"</span> <span class="tag-name">content</span>=<span class="attribute">"true"</span><span class="attribute-value">></span><span class="attribute"></span><span class="attribute-value"></span><span class="tag"><!--Microsoft's old browser --></span></p></li> <li><p>##<<span class="comments"></span>meta</p> </li>name <li>=<p>"MobileOptimized"<span class="tag"> </span>content<span class="tag-name">=</span>"320"<span class="attribute"></span>><span class="attribute-value"></span><span class="attribute"></span><span class="attribute-value"> </span><!-- uc force vertical screen --><span class="tag"></span></p></li> <li>##<<p><span class="comments">meta</span> </p>name </li>=<li>"screen-orientation"<p> <span class="tag">content</span>=<span class="tag-name">"portrait"</span><span class="attribute">><span class="attribute-value"></span><span class="attribute"></span><span class="attribute-value"><!-- QQ forced vertical screen --></span><span class="tag"></span> </li>##<<li><p>meta<span class="comments"> </span>name</p>=</li>"x5-orientation"<li> <p>content<span class="tag">=</span>"portrait"<span class="tag-name"></span>><span class="attribute"></span><span class="attribute-value"></span><span class="attribute"></span><!-- UC forced full screen --><span class="attribute-value"></span><span class="tag"></span>##<</li><li>meta<p> <span class="comments">name</span>=</p>"full-screen"</li> <li>content<p>=<span class="tag">"yes"</span><span class="tag-name">><span class="attribute"></span><span class="attribute-value"></span><span class="attribute"><!-- QQ forced full screen --></span><span class="attribute-value"></span><span class="tag"></span><</li><li>meta<p> <span class="comments">name</span>=</p>"x5-fullscreen"</li> <li>content<p>=<span class="tag">"true"</span><span class="tag-name">><span class="attribute"></span> <span class="attribute-value"></span><span class="attribute"><!-- UC application mode --></span><span class="attribute-value"><li><p><span class="tag"><</span><span class="tag-name">meta</span> <span class="attribute">name</span>=<span class="attribute-value">"browsermode"</span> <span class="attribute">content</span>=<span class="attribute-value">"application"</span><span class="tag">></span></p></li> <li><p><span class="comments"><!-- QQ application mode --></span></p></li> <li><p><span class="tag"><</span><span class="tag-name">meta</span> <span class="attribute">name</span>=<span class="attribute-value">"x5-page-mode"</span> <span class="attribute">content</span>=<span class="attribute-value">"app"</span><span class="tag">></span></p></li> <li><p>##<!-- windows phone click without highlight --><span class="comments"></span></p></li> <li>##<<p><span class="tag">meta</span> <span class="tag-name">name</span>=<span class="attribute">"msapplication-tap-highlight"</span> <span class="attribute-value">content</span>=<span class="attribute">"no"</span><span class="attribute-value">></li></span><span class="tag"></span>##<!-- Adapt to mobile end -- ><li> <p><span class="comments"></span></p>#This is a summary of sharing from toobug. </li> </ol> More meta tag reference<p></p> <p></p>COMPLETE LIST OF HTML META TAGS<ul class=" list-paddingleft-2"> <li><p>##18 Meta Tags Every Webpage Should Have in 2013</p></li> <li><p> Reference article:</p></li> </ul> <p>Commonly used HTML header tags</p> <ul class=" list-paddingleft-2"> <li> <p>html5_header</p> </li> <li><p>amazeui css</p></li> <li><p>DOCTYPE</p></li> <li><p>WEB 10 new changes in iOS 8 that engineers and designers must learn </p></li> <li> </ul><p>The above is the detailed content of Detailed introduction to HTML head tag. For more information, please follow other related articles on the PHP Chinese website!</p></div><div class="nphpQianMsg"><div class="clear"></div></div><div class="nphpQianSheng"><span>Statement:</span><div>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</div></div></div><div class="nphpSytBox"><span>Previous article:<a class="dBlack" title="Detailed introduction to the <head> tag and its content in HTML" href="http://m.php.cn/faq/370785.html">Detailed introduction to the <head> tag and its content in HTML</a></span><span>Next article:<a class="dBlack" title="Detailed introduction to the <head> tag and its content in HTML" href="http://m.php.cn/faq/370796.html">Detailed introduction to the <head> tag and its content in HTML</a></span></div><div class="nphpSytBox2"><div class="nphpZbktTitle"><h2>Related articles</h2><em><a href="http://m.php.cn/article.html" class="bBlack"><i>See more</i><b></b></a></em><div class="clear"></div></div><ul class="nphpXgwzList"><li><b></b><a href="http://m.php.cn/faq/348757.html" title="Summary of Html knowledge" class="aBlack">Summary of Html knowledge</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/faq/348804.html" title="How to learn HTML quickly" class="aBlack">How to learn HTML quickly</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/faq/348873.html" title="The difference between html xhtml xml" class="aBlack">The difference between html xhtml xml</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/faq/348884.html" title="The difference between src and href attributes" class="aBlack">The difference between src and href attributes</a><div class="clear"></div></li><li><b></b><a href="http://m.php.cn/faq/348902.html" title="About HTML5 and CSS replacement use" class="aBlack">About HTML5 and CSS replacement use</a><div class="clear"></div></li></ul></div></div><div class="nphpFoot"><div class="nphpFootBg"><ul class="nphpFootMenu"><li><a href="http://m.php.cn/"><b class="icon1"></b><p>Home</p></a></li><li><a href="http://m.php.cn/course.html"><b class="icon2"></b><p>Course</p></a></li><li><a href="http://m.php.cn/wenda.html"><b class="icon4"></b><p>Q&A</p></a></li><li><a href="http://m.php.cn/login"><b class="icon5"></b><p>My</p></a></li><div class="clear"></div></ul></div></div><div class="nphpYouBox" style="display: none;"><div class="nphpYouBg"><div class="nphpYouTitle"><span onclick="$('.nphpYouBox').hide()"></span><a href="http://m.php.cn/"></a><div class="clear"></div></div><ul class="nphpYouList"><li><a href="http://m.php.cn/"><b class="icon1"></b><span>Home</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/course.html"><b class="icon2"></b><span>Course</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/article.html"><b class="icon3"></b><span>Article</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/wenda.html"><b class="icon4"></b><span>Q&A</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/dic.html"><b class="icon6"></b><span>Dictionary</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/course/type/99.html"><b class="icon7"></b><span>Manual</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/xiazai/"><b class="icon8"></b><span>Download</span><div class="clear"></div></a></li><li><a href="http://m.php.cn/faq/zt" title="Topic"><b class="icon12"></b><span>Topic</span><div class="clear"></div></a></li><div class="clear"></div></ul></div></div><div class="nphpDing" style="display: none;"><div class="nphpDinglogo"><a href="http://m.php.cn/"></a></div><div class="nphpNavIn1"><div class="swiper-container nphpNavSwiper1"><div class="swiper-wrapper"><div class="swiper-slide"><a href="http://m.php.cn/" >Home</a></div><div class="swiper-slide"><a href="http://m.php.cn/article.html" class="hover">Article</a></div><div class="swiper-slide"><a href="http://m.php.cn/wenda.html" >Q&A</a></div><div class="swiper-slide"><a href="http://m.php.cn/course.html" >Course</a></div><div class="swiper-slide"><a href="http://m.php.cn/faq/zt" >Topic</a></div><div class="swiper-slide"><a href="http://m.php.cn/xiazai" >Download</a></div><div class="swiper-slide"><a href="http://m.php.cn/game" >Game</a></div><div class="swiper-slide"><a href="http://m.php.cn/dic.html" >Dictionary</a></div><div class="clear"></div></div></div><div class="langadivs" ><a href="javascript:;" class="bg4 bglanguage"></a><div class="langadiv" ><a onclick="javascript:setlang('zh-cn');" class="language course-right-orders chooselan " href="javascript:;"><span>简体中文</span><span>(ZH-CN)</span></a><a onclick="javascript:;" class="language course-right-orders chooselan chooselanguage" href="javascript:;"><span>English</span><span>(EN)</span></a><a onclick="javascript:setlang('zh-tw');" class="language course-right-orders chooselan " href="javascript:;"><span>繁体中文</span><span>(ZH-TW)</span></a><a onclick="javascript:setlang('ja');" class="language course-right-orders chooselan " href="javascript:;"><span>日本語</span><span>(JA)</span></a><a onclick="javascript:setlang('ko');" class="language course-right-orders chooselan " href="javascript:;"><span>한국어</span><span>(KO)</span></a><a onclick="javascript:setlang('ms');" class="language course-right-orders chooselan " href="javascript:;"><span>Melayu</span><span>(MS)</span></a><a onclick="javascript:setlang('fr');" class="language course-right-orders chooselan " href="javascript:;"><span>Français</span><span>(FR)</span></a><a onclick="javascript:setlang('de');" class="language course-right-orders chooselan " href="javascript:;"><span>Deutsch</span><span>(DE)</span></a></div></div><script> var swiper = new Swiper('.nphpNavSwiper1', { slidesPerView : 'auto', observer: true,//修改swiper自己或子元素时,自动初始化swiper observeParents: true,//修改swiper的父元素时,自动初始化swiper }); </script></div></div><!--顶部导航 end--><script>isLogin = 0;</script><script type="text/javascript" src="/static/layui/layui.js"></script><script type="text/javascript" src="/static/js/global.js?4.9.47"></script></div><script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script><link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css' type='text/css' media='all'/><script type='text/javascript' src='/static/js/viewer.min.js?1'></script><script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script><script>jQuery.fn.wait = function (func, times, interval) { var _times = times || -1, //100次 _interval = interval || 20, //20毫秒每次 _self = this, _selector = this.selector, //选择器 _iIntervalID; //定时器id if( this.length ){ //如果已经获取到了,就直接执行函数 func && func.call(this); } else { _iIntervalID = setInterval(function() { if(!_times) { //是0就退出 clearInterval(_iIntervalID); } _times <= 0 || _times--; //如果是正数就 -- _self = $(_selector); //再次选择 if( _self.length ) { //判断是否取到 func && func.call(_self); clearInterval(_iIntervalID); } }, _interval); } return this; } $("table.syntaxhighlighter").wait(function() { $('table.syntaxhighlighter').append("<p class='cnblogs_code_footer'><span class='cnblogs_code_footer_icon'></span></p>"); }); $(document).on("click", ".cnblogs_code_footer",function(){ $(this).parents('table.syntaxhighlighter').css('display','inline-table');$(this).hide(); }); $('.nphpQianCont').viewer({navbar:true,title:false,toolbar:false,movable:false,viewed:function(){$('img').click(function(){$('.viewer-close').trigger('click');});}}); </script></body></html>