Semantic Elements in HTML

 In previous versions of html, we were using div and span tags to group multiple tags together. But to organize each section on the page, HTML5 introduces some semantic Elements to provide better organization and meaning to content.


Below are some semantics elements 
  • header: defines the header of a document or section
  • nav: defines a list of navigation link
  • section: defines a particular section or related content on the page
  • article: defines independent or self-contained content
  • aside: defines content apart from the page or separate content
  • footer: defines the footer section
  • main: define the main content of the page

Here is an example to better understand each tag:

semantic elements



continue learning: Multimedia Tags


    

       

      

Comments

Popular Posts