With the continuous popularization of WEB standards in China, concepts such as separation of structural performance behavior, modularization, semantics , and elegant degradation have also become important items for assessing a front-end staff's understanding of WEB standards. Among them, due to the impact of the commercial value behind SEO, "Semanticization" has received outstanding attention. As a new front-end worker, I once simply believed that "semanticization" is a method of organizing (x) HTML structure using tags that are most beneficial to search engine weight.
After reading many front-end books and many articles by my predecessors, I began to realize the shallowness of my consciousness and slowly realized the value of "semanticization". The following content is only a summary of personal practice in daily life. It gathers the views of several seniors and stands on the shoulders of giants in order to see further.
What is "Semantic"
“Semantic” refers to the ability of machines to research and collect information with less human intervention, making web pages understandable by machines and ultimately benefiting humans. Specifically, to borrow a popular explanation from a netizen on the BI forum, "Semantic means not to treat your girlfriend as an ordinary friend." The following is a simple XML form example:
However, through CSS control, we can easily display "girlfriend" like "friends". If we only focus on the presentation layer, the label is just a "hook", which is provided for CSS and JS to process. So why do we still emphasize "semanticization", which will be discussed in detail below.
semantic meaning
1.Search engine
Regarding search engine optimization, many seniors have already given rich explanations about the weight of Hx, hidden text, etc., so I won’t go into detail here. Some time ago, a software called Wolfram ( http://www.wolframalpha. com/ ) has attracted attention. We know that Google will sort search results according to the PR value of each website. Other search engines also have their own independent algorithms, and Wolfram claims to "understand" user input content. Make a judgment based on the premise. When I entered "who is adrian", Wolfram gave me such feedback, although the result was not very accurate.
Related to front-end work, isn’t the “semantic” we admire just about letting computers understand our content? With a simple example like this <acronym title=" World Wildlife Fund">WWF</acronym>, the computer can understand that WWF deserves to be the World Wildlife Fund, not the World Water Forum. It is unrealistic for the computer to completely understand our content. Yes, even though search engines like Wolfram may be short-lived, the vision they pursue, making the world's knowledge computable, is indeed worthy of our pursuit.