diff options
Diffstat (limited to 'files/zh-cn/learn/html')
-rw-r--r-- | files/zh-cn/learn/html/introduction_to_html/the_head_metadata_in_html/index.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/files/zh-cn/learn/html/introduction_to_html/the_head_metadata_in_html/index.html b/files/zh-cn/learn/html/introduction_to_html/the_head_metadata_in_html/index.html index a5c51b3ff8..f6a176d75b 100644 --- a/files/zh-cn/learn/html/introduction_to_html/the_head_metadata_in_html/index.html +++ b/files/zh-cn/learn/html/introduction_to_html/the_head_metadata_in_html/index.html @@ -135,10 +135,11 @@ started with developing web sites and applications."></pre> <ol> <li>访问 <a href="https://developer.mozilla.org/zh-CN/">MDN Web Docs</a>。</li> <li>查看网页源代码(<em>通过鼠标右键点击网页在弹出的菜单中选择[查看网页源代码]</em>)</li> - <li>找到description的meta标签。就和如下展示的这样: - <pre class="brush: html notranslate"><meta name="description" content="The Mozilla Developer Network (MDN) provides -information about Open Web technologies including HTML, CSS, and APIs for both -Web sites and HTML5 Apps. It also documents Mozilla products, like Firefox OS."></pre> + <li>找到description的meta标签。就和如下展示的这样:+ + <pre class="brush: html notranslate"><meta name="description" content="The MDN Web Docs site + provides information about Open Web technologies + including HTML, CSS, and APIs for both Web sites and + progressive web apps."></pre> </li> <li>现在,在你喜欢的搜索引擎里搜索“MDN Web Docs” (下图展示的是在谷歌搜索里的情况) 。你会看到description <code><meta></code> and <code><title></code> 元素如何在搜索结果里显示— 很值得这样做哦!</li> </ol> |