## The head element contains all head tag elements and can be added The element tags in the head area are: ## , , <meta>, <link>, <script> ;, <noscript>, <base><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;"></span></span></p>## The following will explain the functions of each tag one by one<p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;"></span> </span></p> <p><title><strong><span style="font-size: 14pt;"><span style="font-size: 16px;"></span></span></strong></p> <ol class=" list-paddingleft-2">##Used to define the titles of different documents<li> <p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;"></span></span></p> </li>Define the title of the browser toolbar<li> <p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;"></span></span></p> ##When a web page is added to favorites, the title displayed in the favorites</li> <li><p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;"></span></span>##The title displayed on the search engine results page</p></li> <li><p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;"></span>##<div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false;"> eg: <title> 我是标题 </title></pre><div class="contentsignin">Copy after login</div></div></span></p><base></li></ol><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre"><span style="font-size: 15px;"><span style="font-family: 'Microsoft YaHei';"> 标签描述了基本的链接地址/链接目标,该标签作为HTML文档中所有的链接标签的默认链接。</span><br/></span></pre><div class="contentsignin">Copy after login</div></div><p class="cnblogs_code"><br/></p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false;"> eg: <base href="www.beck.ren/images/" target="_blank"></base></pre><div class="contentsignin">Copy after login</div></div> <h3 class="public-p-title"><span style="font-size: 16px;"><link></span></h3><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre"> 标签定义了文档与外部资源之间的关系,通常用于链接样式表。</pre><div class="contentsignin">Copy after login</div></div><p class="cnblogs_code"><br/></p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false;"> eg: <link type="text/css" href="../index.css"></pre><div class="contentsignin">Copy after login</div></div><h3 class="public-p-title"><span style="font-size: 16px;"><style></span></h3><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre"> 标签定义了HTML文档的样式文件引用地址.内容指定样式渲染HTML文档</pre><div class="contentsignin">Copy after login</div></div><p class="cnblogs_code"><br/> </p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false;">eg: <style> *{ margin:0; padding: 0; } <style> //css写法</pre><div class="contentsignin">Copy after login</div></div>rrree<h3 class="public-p-title"><span style="font-size: 16px;"></span></h3><p class="cnblogs_code">meta tag describes basic metadata<br/></p><ol class=" list-paddingleft-2"><li><p><span style="font-family: 'Microsoft YaHei';"><span style="font-size: 16px;"></span><span style="font-size: 15px;"><span style="font-size: 16px;"><strong><br/></strong>##The browser will parse the metadata provided by the tag, but the metadata will not be displayed on the page</span></span></span></p></li><li>meta elements are usually used to specify the "description", "keywords", "last modification time of the file", "author",...<p><span style="font-size: 16px; font-family: 'Microsoft YaHei';"></span></p></li><li>Metadata can tell the browser (how to display content or reload the page) and search engines (keywords), and other web services<p><span style="font-size: 16px; font-family: 'Microsoft YaHei';"></span></p></li> <li><p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre"><meta></pre><div class="contentsignin">Copy after login</div></div><span style="font-size: 16px; font-family: 'Microsoft YaHei';"></span><script></p></li><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:js;toolbar:false;">eg: //定义关键字 <meta name="keywords content="HTML, CSS, XML, XHTML, JavaScript""> //定义描述内容 <meta name="description" content="Free Web tutorials on HTML and CSS"> //定义作者 <meta name="author" content="Hege Refsnes"> //定义每30秒刷新当前页面 <meta http-equiv="refresh" content="30"></pre><div class="contentsignin">Copy after login</div></div></ol><p class="cnblogs_code"><br/><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre"> 标签定义了 HTML 文档的 JS 文件引用地址.</pre><div class="contentsignin">Copy after login</div></div></span></p></li> </ol>