Home Web Front-end HTML Tutorial Detailed introduction to HTML head tag

Detailed introduction to HTML head tag

Jun 27, 2017 am 10:20 AM
head html introduce

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> <div class="wzconShengming_sp"> <div class="bzsmdiv_sp">Statement of this Website</div> <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> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="2507867629"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <div class="AI_ToolDetails_main4sR"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5902227090019525" data-ad-slot="3653428331" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <!-- <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>Hot Article</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796785841.html" title="Assassin's Creed Shadows: Seashell Riddle Solution" class="phpgenera_Details_mainR4_bottom_title">Assassin's Creed Shadows: Seashell Riddle Solution</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>1 months ago</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796789525.html" title="What's New in Windows 11 KB5054979 & How to Fix Update Issues" class="phpgenera_Details_mainR4_bottom_title">What's New in Windows 11 KB5054979 & How to Fix Update Issues</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 weeks ago</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796785857.html" title="Where to find the Crane Control Keycard in Atomfall" class="phpgenera_Details_mainR4_bottom_title">Where to find the Crane Control Keycard in Atomfall</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>1 months ago</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796793874.html" title="How to fix KB5055523 fails to install in Windows 11?" class="phpgenera_Details_mainR4_bottom_title">How to fix KB5055523 fails to install in Windows 11?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 weeks ago</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796787760.html" title="InZoi: How To Apply To School And University" class="phpgenera_Details_mainR4_bottom_title">InZoi: How To Apply To School And University</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 weeks ago</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/article.html">Show More</a> </div> </div> </div> --> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>Hot AI Tools</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title"> <h3>Undresser.AI Undress</h3> </a> <p>AI-powered app for creating realistic nude photos</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title"> <h3>AI Clothes Remover</h3> </a> <p>Online AI tool for removing clothes from photos.</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title"> <h3>Undress AI Tool</h3> </a> <p>Undress images for free</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title"> <h3>Clothoff.io</h3> </a> <p>AI clothes remover</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title"> <h3>Video Face Swap</h3> </a> <p>Swap faces in any video effortlessly with our completely free AI face swap tool!</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ai">Show More</a> </div> </div> </div> <script src="https://sw.php.cn/hezuo/cac1399ab368127f9b113b14eb3316d0.js" type="text/javascript"></script> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>Hot Article</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796785841.html" title="Assassin's Creed Shadows: Seashell Riddle Solution" class="phpgenera_Details_mainR4_bottom_title">Assassin's Creed Shadows: Seashell Riddle Solution</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>1 months ago</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796789525.html" title="What's New in Windows 11 KB5054979 & How to Fix Update Issues" class="phpgenera_Details_mainR4_bottom_title">What's New in Windows 11 KB5054979 & How to Fix Update Issues</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 weeks ago</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796785857.html" title="Where to find the Crane Control Keycard in Atomfall" class="phpgenera_Details_mainR4_bottom_title">Where to find the Crane Control Keycard in Atomfall</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>1 months ago</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796793874.html" title="How to fix KB5055523 fails to install in Windows 11?" class="phpgenera_Details_mainR4_bottom_title">How to fix KB5055523 fails to install in Windows 11?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 weeks ago</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/1796787760.html" title="InZoi: How To Apply To School And University" class="phpgenera_Details_mainR4_bottom_title">InZoi: How To Apply To School And University</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 weeks ago</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/article.html">Show More</a> </div> </div> </div> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>Hot Tools</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Notepad++7.3.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_title"> <h3>Notepad++7.3.1</h3> </a> <p>Easy-to-use and free code editor</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Chinese version" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/toolset/development-tools/93" title="SublimeText3 Chinese version" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Chinese version</h3> </a> <p>Chinese version, very easy to use</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Zend Studio 13.0.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/toolset/development-tools/121" title="Zend Studio 13.0.1" class="phpmain_tab2_mids_title"> <h3>Zend Studio 13.0.1</h3> </a> <p>Powerful PHP integrated development environment</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title"> <h3>Dreamweaver CS6</h3> </a> <p>Visual web development tools</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac version" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/toolset/development-tools/500" title="SublimeText3 Mac version" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Mac version</h3> </a> <p>God-level code editing software (SublimeText3)</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ai">Show More</a> </div> </div> </div> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>Hot Topics</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/gmailyxdlrkzn" title="Where is the login entrance for gmail email?" class="phpgenera_Details_mainR4_bottom_title">Where is the login entrance for gmail email?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>7754</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>15</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/java-tutorial" title="Java Tutorial" class="phpgenera_Details_mainR4_bottom_title">Java Tutorial</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1643</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>14</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/cakephp-tutor" title="CakePHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">CakePHP Tutorial</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1399</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>52</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/laravel-tutori" title="Laravel Tutorial" class="phpgenera_Details_mainR4_bottom_title">Laravel Tutorial</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1293</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>25</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/faq/php-tutorial" title="PHP Tutorial" class="phpgenera_Details_mainR4_bottom_title">PHP Tutorial</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1234</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>29</span> </div> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/faq/zt">Show More</a> </div> </div> </div> </div> </div> <div class="Article_Details_main2"> <div class="phpgenera_Details_mainL4"> <div class="phpmain1_2_top"> <a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img src="/static/imghw/index2_title2.png" alt="" /></a> </div> <div class="phpgenera_Details_mainL4_info"> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/faq/1796600245.html" title="Table Border in HTML" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416492486715.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Table Border in HTML" /> </a> <a href="https://www.php.cn/faq/1796600245.html" title="Table Border in HTML" class="phphistorical_Version2_mids_title">Table Border in HTML</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:49 PM</span> <p class="Articlelist_txts_p">Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/faq/1796600244.html" title="Nested Table in HTML" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416491283996.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Nested Table in HTML" /> </a> <a href="https://www.php.cn/faq/1796600244.html" title="Nested Table in HTML" class="phphistorical_Version2_mids_title">Nested Table in HTML</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:49 PM</span> <p class="Articlelist_txts_p">This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/faq/1796600238.html" title="HTML margin-left" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416482056439.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML margin-left" /> </a> <a href="https://www.php.cn/faq/1796600238.html" title="HTML margin-left" class="phphistorical_Version2_mids_title">HTML margin-left</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:48 PM</span> <p class="Articlelist_txts_p">Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/faq/1796600271.html" title="HTML Table Layout" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416543391948.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML Table Layout" /> </a> <a href="https://www.php.cn/faq/1796600271.html" title="HTML Table Layout" class="phphistorical_Version2_mids_title">HTML Table Layout</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:54 PM</span> <p class="Articlelist_txts_p">Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/faq/1796600269.html" title="HTML Input Placeholder" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416542577781.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML Input Placeholder" /> </a> <a href="https://www.php.cn/faq/1796600269.html" title="HTML Input Placeholder" class="phphistorical_Version2_mids_title">HTML Input Placeholder</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:54 PM</span> <p class="Articlelist_txts_p">Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/faq/1796600210.html" title="HTML Ordered List" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416432927533.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML Ordered List" /> </a> <a href="https://www.php.cn/faq/1796600210.html" title="HTML Ordered List" class="phphistorical_Version2_mids_title">HTML Ordered List</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:43 PM</span> <p class="Articlelist_txts_p">Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/faq/1796600227.html" title="Moving Text in HTML" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416455153019.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Moving Text in HTML" /> </a> <a href="https://www.php.cn/faq/1796600227.html" title="Moving Text in HTML" class="phphistorical_Version2_mids_title">Moving Text in HTML</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:45 PM</span> <p class="Articlelist_txts_p">Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/faq/1796600246.html" title="HTML onclick Button" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/202409/04/2024090416493797970.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="HTML onclick Button" /> </a> <a href="https://www.php.cn/faq/1796600246.html" title="HTML onclick Button" class="phphistorical_Version2_mids_title">HTML onclick Button</a> <span class="Articlelist_txts_time">Sep 04, 2024 pm 04:49 PM</span> <p class="Articlelist_txts_p">Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.</p> </div> </div> <a href="https://www.php.cn/web-designer.html" class="phpgenera_Details_mainL4_botton"> <span>See all articles</span> <img src="/static/imghw/down_right.png" alt="" /> </a> </div> </div> </div> </main> <footer> <div class="footer"> <div class="footertop"> <img src="/static/imghw/logo.png" alt=""> <p>Public welfare online PHP training,Help PHP learners grow quickly!</p> </div> <div class="footermid"> <a href="https://www.php.cn/about/us.html">About us</a> <a href="https://www.php.cn/about/disclaimer.html">Disclaimer</a> <a href="https://www.php.cn/update/article_0_1.html">Sitemap</a> </div> <div class="footerbottom"> <p> © php.cn All rights reserved </p> </div> </div> </footer> <input type="hidden" id="verifycode" value="/captcha.html"> <script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script> <script src="/static/js/common_new.js"></script> <script type="text/javascript" src="/static/js/jquery.cookie.js?1745738325"></script> <script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script> <link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' 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 type="text/javascript" src="/static/js/global.min.js?5.5.53"></script> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function () { var u = "https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setSiteId', '9']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); })(); </script> <script> // top layui.use(function () { var util = layui.util; util.fixbar({ on: { mouseenter: function (type) { layer.tips(type, this, { tips: 4, fixed: true, }); }, mouseleave: function (type) { layer.closeAll("tips"); }, }, }); }); document.addEventListener("DOMContentLoaded", (event) => { // 定义一个函数来处理滚动链接的点击事件 function setupScrollLink(scrollLinkId, targetElementId) { const scrollLink = document.getElementById(scrollLinkId); const targetElement = document.getElementById(targetElementId); if (scrollLink && targetElement) { scrollLink.addEventListener("click", (e) => { e.preventDefault(); // 阻止默认链接行为 targetElement.scrollIntoView({ behavior: "smooth" }); // 平滑滚动到目标元素 }); } else { console.warn( `Either scroll link with ID '${scrollLinkId}' or target element with ID '${targetElementId}' not found.` ); } } // 使用该函数设置多个滚动链接 setupScrollLink("Article_Details_main1L2s_1", "article_main_title1"); setupScrollLink("Article_Details_main1L2s_2", "article_main_title2"); setupScrollLink("Article_Details_main1L2s_3", "article_main_title3"); setupScrollLink("Article_Details_main1L2s_4", "article_main_title4"); setupScrollLink("Article_Details_main1L2s_5", "article_main_title5"); setupScrollLink("Article_Details_main1L2s_6", "article_main_title6"); // 可以继续添加更多的滚动链接设置 }); window.addEventListener("scroll", function () { var fixedElement = document.getElementById("Article_Details_main1Lmain"); var scrollTop = window.scrollY || document.documentElement.scrollTop; // 兼容不同浏览器 var clientHeight = window.innerHeight || document.documentElement.clientHeight; // 视口高度 var scrollHeight = document.documentElement.scrollHeight; // 页面总高度 // 计算距离底部的距离 var distanceToBottom = scrollHeight - scrollTop - clientHeight; // 当距离底部小于或等于300px时,取消固定定位 if (distanceToBottom <= 980) { fixedElement.classList.remove("Article_Details_main1Lmain"); fixedElement.classList.add("Article_Details_main1Lmain_relative"); } else { // 否则,保持固定定位 fixedElement.classList.remove("Article_Details_main1Lmain_relative"); fixedElement.classList.add("Article_Details_main1Lmain"); } }); </script> <script> document.addEventListener('DOMContentLoaded', function() { const mainNav = document.querySelector('.Article_Details_main1Lmain'); const header = document.querySelector('header'); if (mainNav) { window.addEventListener('scroll', function() { const scrollPosition = window.scrollY; if (scrollPosition > 84) { mainNav.classList.add('fixed'); } else { mainNav.classList.remove('fixed'); } }); } }); </script> </body> </html>