Introduction to Semantic HTML Tags

Introduction to Semantic HTML Tags
In the past few years, DIV+CSS was very popular in website development, and it caused a huge uproar at the time. But later on, pure DIV+CSS was abandoned by programmers for front-end development, and the term "semantic tagging" came out.
So what does this word mean? The following is excerpted from Baidu Encyclopedia:
HTML tag semantics: the meaning of HTML tags .
First of all, let’s talk about the difference between semantics and default styles. Default styles are the expressions of some common tags set by the browser. I think its main purpose is to let everyone intuitively understand the purpose and function of tags (markup) and attributes (attribute). Obviously, the Hx series looks like a title because it has bold and larger font size. , used to distinguish it from other characters and serve to emphasize it. As for lists and tables, it's obvious what they do.
So how can we understand this passage well? In fact, this paragraph shows that you should use whatever tags you need, and don’t use DIV layout deliberately. For example, if you want to add bold or something, you can use it directly, and there is no need to use class for rendering. Be more natural. For example, you can also use table layout appropriately in the page. Who says tables are not good for SEO? Even Baidu uses tables. So use whichever is more convenient and whichever has a clearer structure. Eliminate the term DIV+CSS layout.

<<:  A must-read career plan for web design practitioners

>>:  Vue3.0 uses the vue-grid-layout plug-in to implement drag layout

Recommend

Zabbix WEB monitoring implementation process diagram

Take zabbix's own WEB interface as an example...

Web front-end development experience summary

XML files should be encoded in utf-8 as much as p...

Example of using CSS to achieve semi-transparent background and opaque text

This article introduces an example of how to use ...

A quick review of CSS3 pseudo-class selectors

Preface If CSS is the basic skill of front-end de...

A simple tutorial on how to use the mysql log system

Table of contents Preface 1. Error log 2. Binary ...

A simple way to implement all functions of shopping cart in Vue

The main functions are as follows: Add product in...

Detailed tutorial on MySql installation and uninstallation

This article shares the tutorial of MySql install...

JavaScript navigator.userAgent obtains browser information case explanation

The browser is probably the most familiar tool fo...

How to display texture at the position of swipe in CocosCreator

Table of contents 1. Project requirements 2. Docu...

ElementUI component el-dropdown (pitfall)

Select and change: click to display the current v...

Vue achieves the top effect through v-show

html <div class="totop" v-show="...

MySQL Optimization: InnoDB Optimization

Study plans are easily interrupted and difficult ...

Advertising skills in the Baidu Union environment (graphic tutorial)

Recently, students from the User Experience Team o...

Let's talk in depth about the principle and implementation of new in JS

Table of contents definition Constructor bodies a...

html+css+js to realize the function of photo preview and upload picture

Preface: When we are making web pages, we often n...