Do not start CSS pseudo-class names with numbers

Do not start CSS pseudo-class names with numbers

When newbies develop div+css, they need to name the CSS pseudo-class names, such as .ggg, #ccc, and other formats. However, some novices often want to keep things simple when naming CSS pseudo-classes, so they directly use numbers to name them, or name CSS pseudo-class names starting with numbers. This is not allowed.

Newbies should be aware not to name CSS pseudo-classes starting with Arabic numerals, otherwise the browser will not be able to interpret and parse CSS classes named starting with numbers, which will eventually cause incompatibility with similar CSS hack styles, or classes with CSS names starting with numbers will be invalid (the browser cannot interpret them).


Of course, it is okay to use English letters plus numbers to name, but remember that you cannot use numbers plus letters or pure numbers to name CSS selectors. I hope newbies will pay more attention.

<<:  Specific use of CSS front-end page rendering optimization attribute will-change

>>:  An example of the execution order between the href jump and onclick of the html hyperlink a tag

Recommend

Method of realizing automated deployment based on Docker+Jenkins

Use Code Cloud to build a Git code storage wareho...

Implementation of new issues of CSS3 selectors

Table of contents Basic Selector Extensions Attri...

Introduction to Semantic HTML Tags

In the past few years, DIV+CSS was very popular in...

Detailed explanation on how to install MySQL database on Alibaba Cloud Server

Preface Since I needed to install Zookeeper durin...

Implementation of Element-ui Layout (Row and Col components)

Table of contents Basic instructions and usage An...

How to authorize remote connections in MySQL in Linux

Note: Other machines (IP) cannot connect to the M...

Examples of common Nginx misconfigurations

Table of contents Missing root location Off-By-Sl...

The latest MySQL 5.7.23 installation and configuration graphic tutorial

The detailed installation and configuration of th...

How to split data in MySQL table and database

Table of contents 1. Vertical (longitudinal) slic...

Sharing tips on using vue element and nuxt

1. Element time selection submission format conve...

Pure CSS to achieve the effect of picture blinds display example

First, let me show you the finished effect Main i...

Pay attention to the use of HTML tags in web page creation

This article introduces some issues about HTML ta...

Markup Languages ​​- Lists Again

Click here to return to the 123WORDPRESS.COM HTML ...

Vue.js implements simple timer function

This article example shares the specific code of ...

mysql-8.0.17-winx64 deployment method

1. Download mysql-8.0.17-winx64 from the official...