In fact, this question has already emerged when I first learned the select tag in HTML. To this day, I still haven't found a way to use pure CSS to disable A tags - I have asked my colleagues, classmates, and teachers. They all use JavaScript. Do you really have to use JavaScript?
1. Pure CSS implements the disable A tag in HTML:
Copy the code