Web semantics is HTML tells us to also tell the machine what this piece is, for example: "This line is a title, these lines form a paragraph, this is a list, that is a link." "There are three phases of Web semantics:
1, H1~h6, THEAD, UL, OL and other HTML tags. These tags are used to organize the corresponding content in Web pages, such as page titles, headers, unordered, ordered lists, for easier collaboration and dissemination of Internet content. Search engines take advantage of these semantic tags to crawl content.
2, with the development of the web, the first definition of HTML semantic tags, not enough to implement the various parts of the Web page function or location description, such as we use DIV to represent page chapters. So the Web front-end person uses the ID and class attributes of the HTML tag to further describe the HTML tag, such as adding an attribute (value) such as id= "footer" or class= "footer" to the footer HTML tag.
3, the organization realizes the previous HTML version of the shortcomings, launched the HTML5 further promote the development of web semantics, using such as footer, section and other semantic tags, make up for the use of id= "footer" or class= "footer" form of deficiencies, To better promote the development of the Web.
HTML5 New Semantic Tag example:
1 <!DOCTYPE HTML>2 <HTML>3 4 <Head>5 <MetaCharSet= "Utf-8">6 <title>H5 new Web Semantic tags</title>7 </Head>8 9 <Body>Ten <Header> One This is the head . A </Header> - <nav> - This is the navigation . the </nav> - <article> - This is the text . - < Section> + This is the text of paragraph 1 - </ Section> + < Section> A This is the text of paragraph 2 at </ Section> - </article> - <aside> - This is the sidebar . - <Address> - This is the address . in </Address> - </aside> to <Footer> + This is the footer . - </Footer> the </Body> * $ </HTML>
Web semantics and h5 new tags