📌  相关文章
📜  如何在 HTML5 中指定文档的主要内容?

📅  最后修改于: 2021-11-10 04:14:27             🧑  作者: Mango

标签是 HTML5 中新的分节元素之一。 HTML 文章标签用于表示一篇文章。更具体地说,
标签中的内容独立于站点的其他内容(即使它可以相关)。

换句话说,article 元素表示由文档、页面或站点中的自包含组合组成的页面组件。

示例 1:



  

    
        Specify the main content of a 
        document using HTML5
    

  

    

GeeksForGeeks

       

        HTML5: How to specify the          main content of a document     

          
                       

GeeksforGeeks

           

            Sandeep Jain(FOUNDER) An IIT Roorkee              alumnus and founder of GeeksforGeeks.             Apart from GeeksforGeeks, he has worked             with DE Shaw and Co. as a software developer             and JIIT Noida as an assistant professor.         

    
          

输出:

示例 2:



  

    
  
    
        Specify the main content of 
        a document using HTML5
    

  

    

GeeksForGeeks

    

        HTML5: How to specify the          main content of a document?     

       
        

search engines

           

            Google, Bing, and Yahoo! are the              most used search engines today.         

           

Google

        

            The world's most popular              search engine.         

           

Bing

        

            Microsoft's entry into the              burgeoning search engine              market. Better late than              never.         

           

Yahoo!

        

            The 2nd largest search              engine on the web         

    
  

输出: