在HTML5中,我们如何显示文档中的主要内容?

原创
ithorizon 5个月前 (10-19) 阅读数 43 #HTML

HTML

标记指定文档中的主要或重要内容。它每页只能使用一次,并且不能用作 、、

示例

您可以尝试运行以下代码来了解如何在 HTML 文档中显示主要内容 -

<!DOCTYPE html>
<html>
   <body>
      <main>
         <h1>Learning</h1>
         <p>Learn to gain experience and try to share your knowledge with others.</p>

         <article>
            <h3>Web Development Tutorials</h3>
            <p>Consist of CSS, HTML, and PHP tutorials for 2nd Semester exams.</p>
         </article>

         <article>
            <h3>Academic Tutorials</h3>
            <p>Consist of Computer Fundamental, Computer Network tutorials for 1st Semester exams.</p><p><span>立即学习</span>“<a href="https://pan.quark.cn/s/cb6835dc7db1" style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">前端免费学习笔记(深入)</a>”;</p>
         </article>
      </main>
   </body>
</html>

以上就是在HTML5中,我们如何显示文档中的主要内容?的详细内容,更多请关注IT视界其它相关文章!



热门