html如何改网页名称

html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">

html中,可以通过设置“”标签对的内容来改变网页名称,语法格式“<title>网页名称(标题)”;title标签用于定义HTML文档的标题,即浏览器工具栏中显示的网页标题和显示在搜索引擎结果中的页面标题。

html如何改网页名称

本教程操作环境:windows7系统、HTML5版、Dell G3电脑。

html修改网页名称

html中,可以通过设置“”标签对的内容来改变网页名称。<title> 标签可以定义文档的标题,在所有 <a href="/tag-news-name-HTML-p-1.html">HTML</a> 文档中是必需的。</p><p>下面通过代码示例来看看具体实现方法:</p><pre><!DOCTYPE <a href="/tag-news-name-html-p-1.html">html</a>> <<a href="/tag-news-name-html-p-1.html">html</a>> <head> <meta charset="utf-8"> <title></title> </head> <body> 文档内容...... </body> </<a href="/tag-news-name-html-p-1.html">html</a>></pre><p>如果<title>标签不设置值,则显示效果</p><p><img src="/Uploads/news/56c370a46b72fc1de0aa9cd5a2022662/1623141114989036.png" title="1623141114989036.png" alt="1.png"></p><p>添加以下代码后:</p><pre><title>文档标题</title></pre><p>效果图:<br></p><p><img src="/Uploads/news/56c370a46b72fc1de0aa9cd5a2022662/1623141252794782.png" title="1623141252794782.png" alt="2.png"></p><p><strong>说明:</strong></p><p><title>元素:</p><ul style="max-width:90%"><li><p>定义浏览器工具栏中的标题</p></li><li><p>提供页面被添加到收藏夹时的标题</p></li><li><p>显示在搜索引擎结果中的页面标题</p></li></ul><p>注:</p><ul style="list-style-type: disc;"><li><p>一个 <a href="/tag-news-name-HTML-p-1.html">HTML</a> 文档中不能有一个以上的 <title> 元素。</p></li><li><p>如果遗漏了 <title> 标签,文档作为 <a href="/tag-news-name-HTML-p-1.html">HTML</a> 是无效的。</p></li></ul><p>推荐教程:《<a href="/tag-news-name-html-p-1.html">html</a>视频教程》</p> <p>以上就是<a href="/tag-news-name-html-p-1.html">html</a>如何改网页名称的详细内容,更多请关注www.sxiaw.com其它相关文章!</p> <button type="button" class="ask_text test-iframe-handle"> </button> </div> </article> <aside class="swnetnews"> <div class="lis"> <span><i>推荐内容</i></span> <ul> <li><a href="/doc/8297.html" title="*p++和(*p)++的区别是什么" target="_blank">*p++和(*p)++的区别是什么</a></li><li><a href="/doc/6813.html" title="phpmyadmin初始密码是多少" target="_blank">phpmyadmin初始密码是多少</a></li><li><a href="/doc/6491.html" title="解决phpmyadmin上传大于2M的问题" target="_blank">解决phpmyadmin上传大于2M的问题</a></li><li><a href="/doc/3371.html" title="golang如何返回不定参数" target="_blank">golang如何返回不定参数</a></li><li><a href="/doc/1991.html" title="探讨Golang的教学方法" target="_blank">探讨Golang的教学方法</a></li><li><a href="/doc/6135.html" title="解析PHP中的crypt()函数(附代码实例)" target="_blank">解析PHP中的crypt()函数(附代码实例)</a></li><li><a href="/doc/5743.html" title="win10电脑开机后总是卡住怎么解决" target="_blank">win10电脑开机后总是卡住怎么解决</a></li><li><a href="/doc/4005.html" title="vscode删除键不能用怎么办" target="_blank">vscode删除键不能用怎么办</a></li><li><a href="/doc/9094.html" title="redis怎么清除缓存数据" target="_blank">redis怎么清除缓存数据</a></li><li><a href="/doc/759.html" title="C#基础之操作优化实例教程" target="_blank">C#基础之操作优化实例教程</a></li> </ul> </div> </aside> </main> <script> // first, find all the div.code blocks document.querySelectorAll('pre').forEach(el => { // then highlight each hljs.highlightElement(el); hljs.lineNumbersBlock(el); }); </script> <link rel="stylesheet" type="text/css" href="/kan/css/basezb.css"> <script type="text/javascript" src="/kan/js/read.js"></script> <div style="display:none"> <div class="login-box" id="login-dialog"> <div class="login-top"><a rel="nofollow" id="login1" onclick="setTab('login',1,2);" >登录</a></div> <div class="login-form" id="nav-signin"> <!-- <div class="login-ico"><a rel="nofollow" class="qq" id="qqlogin" target="_blank" href="/user-center-qqlogin.html"> QQ </a></div> --> <div class="login-box-form" id="con_login_1"> <form id="loginform" action="/user-center-login.html" method="post" onsubmit="return false;"> <p class="int-text"> <input class="email" id="username" name="username" type="text" value="用户名或Email" onfocus="if(this.value=='用户名或Email'){this.value='';}" onblur="if(this.value==''){this.value='用户名或Email';};" ></p> <p class="int-text"> <input class="password1" type="password" id="password" name="password" value="******" onBlur="if(this.value=='') this.value='******';" onFocus="if(this.value=='******') this.value='';" > </p> <p class="int-info"> <label class="ui-label"> </label> <label for="agreement" class="ui-label-checkbox"> <input type="checkbox" value="" name="cookietime" id="cookietime" checked="checked" value="2592000"> <input type="hidden" name="notforward" id="notforward" value="1"> <input type="hidden" name="dosubmit" id="dosubmit" value="1">记住我的登录 </label> <a rel="nofollow" class="aright" href="/user-center-forgetpwd.html" target="_blank"> 忘记密码? </a></p> <p class="int-btn"><a rel="nofollow" id="loginbt" class="loginbtn"><span>登录</span></a></p> </form> </div> </div> </div> </div> </div> <script type="text/javascript" src="/kan/js/foot_js.js"></script> <div id="footer"> <div class="w1200"> <p class="tips_text">本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。</p> <p class="tips_text">Copyright © 2004-2018 https://www.sxiaw.com/. All Rights Reserved.<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?fa236be8ec7680639fbd4ee307fd0c69"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <a href="http://beian.miit.gov.cn/" target="_blank">津ICP备2023001793号-1</a></p> </div> </div> </body> </html>