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

MySQL 5.7.13 installation and configuration method graphic tutorial on Mac

MySQL 5.7.13 installation tutorial for Mac, very ...

MySQL trigger detailed explanation and simple example

MySQL trigger simple example grammar CREATE TRIGG...

MySQL can actually implement distributed locks

Preface In the previous article, I shared with yo...

JavaScript imitates Jingdong magnifying glass special effects

This article shares the specific code of JavaScri...

What is ssh? How to use? What are the misunderstandings?

Table of contents Preface What is ssh What is ssh...

HTML framework_Powernode Java Academy

1. Framework A browser document window can only d...

Pure CSS3 to achieve mouse over button animation Part 2

After the previous two chapters, do you have a ne...

Binary Type Operations in MySQL

This article mainly introduces the binary type op...

Sample code for implementing the Olympic rings with pure HTML+CSS

Rendering Code - Take the blue and yellow rings a...

Nginx prohibits direct access via IP and redirects to a custom 500 page

Directly to the configuration file server { liste...

Detailed steps to install docker in 5 minutes

Installing Docker on CentOS requires the operatin...

MySQL 5.7.17 winx64 installation and configuration tutorial

Today I installed the MySQL database on my comput...

One sql statement completes MySQL deduplication and keeps one

A few days ago, when I was working on a requireme...

Mini Program to implement Token generation and verification

Table of contents process Demo Mini Program Backe...