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

Solution to the problem of large font size on iPhone devices in wap pages

If you don't want to use javascript control, t...

CSS to achieve chat bubble effect

1. Rendering JD Effect Simulation Effect 2. Princ...

Detailed tutorial for installing ElasticSearch:7.8.0 cluster with docker

ElasticSearch cluster supports動態請求的方式and靜態配置文件to ...

How to connect to MySQL remotely through Navicat

Using Navicat directly to connect via IP will rep...

jQuery canvas generates a poster with a QR code

This article shares the specific code for using j...

One line of code solves various IE compatibility issues (IE6-IE10)

x-ua-compatible is used to specify the model for ...

Some notes on modifying the innodb_data_file_path parameter of MySQL

Preface innodb_data_file_path is used to specify ...

Instructions for nested use of MySQL ifnull

Nested use of MySQL ifnull I searched online to s...

Detailed explanation of the configuration method of Vue request interceptor

Follow the steps below 1. request.js content: htt...

Graphical tutorial on installing JDK1.8 under CentOS7.4

Linux installation JDK1.8 steps 1. Check whether ...

How to quickly build a LAMP environment on CentOS platform

This article uses an example to describe how to q...

Introduction to install method in Vue

Table of contents 1. Globally registered componen...

Comparison of the advantages of vue3 and vue2

Table of contents Advantage 1: Optimization of di...

Implementation of building Kubernetes cluster with VirtualBox+Ubuntu16

Table of contents About Kubernetes Basic environm...