📜  HTML 标题标签

📅  最后修改于: 2021-11-08 02:28:09             🧑  作者: Mango

HTML 中的 标签用于定义 HTML 文档的标题。它在浏览器工具栏中设置标题。当它被添加到收藏夹时,它提供网页的标题。它在搜索引擎结果中显示页面的标题。<br/><strong>句法:</strong> </p> <div class="hcb_wrap"> <pre class="prism line-numbers lang-html" data-lang="HTML"><code class="replace"><title> Title name

例子:

HTML


    
        title Tag
    
    
        

GeeksforGeeks

        

Tag</h2>           <p>Welcome to GeeksforGeeks!</p>       </body> </html></code></pre> </div> <p></p> <hr/> </div> <p><strong>输出:</strong> </p> <p><img class="img-fluid" sizes="100vw" src="https://mangodoc.oss-cn-beijing.aliyuncs.com/geek8geeks/HTML_title_Tag_0.jpg" srcset="https://media.geeksforgeeks.org/wp-content/uploads/20210701183208/title.png," width="267"/></p> <p><strong>支持的浏览器:</strong></p> <ul> <li>谷歌浏览器</li> <li>IE浏览器</li> <li>火狐</li> <li>歌剧</li> <li>苹果浏览器</li> </ul> </div> </article> </div> </div> </div> </div> </div> <footer> <div class="bg-white text-center pb-1"> <p class="text-body-tertiary pt-3 lh-lg text-opacity-50" id="footer-text">Copyright © 2020 - 2024 版权所有 <br> <a href="https://beian.miit.gov.cn/" target="_blank" class="text-opacity-50 text-body-tertiary mt-1 mb-1">蜀ICP备20006366号-1</a> <br> Made with ❤️ in Chengdu </p> </div> </footer> <!-- 引入Bootstrap JavaScript库 --> <script src="https://unpkg.com/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script> <!-- 引入Meilisearch搜索相关的JavaScript库 --> <script src="https://cdn.jsdelivr.net/npm/@meilisearch/instant-meilisearch/dist/instant-meilisearch.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/instantsearch.js@4"></script> <script src="https://imangodoc.com/static/javascript/meili_custom.js"></script> <!-- 引入prismjs代码高亮相关的JavaScript库 --> <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-core.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/toolbar/prism-toolbar.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"></script> </body> </html>