What is the function of !-- -- in HTML page style?

What is the function of !-- -- in HTML page style?
Mainly for low version browsers

<!-- --> is an HTML comment tag. Higher-version browsers will recognize the <style> tag as a style sheet.
And ignore the html comment tags inside, it will parse it,
Some browsers with lower versions do not recognize the <style> tag and will display the contents of the style sheet on the page.
So add the comment tag, so that even if the lower version of the browser does not recognize the <style> tag,
The content will not be displayed on the page.

<<:  Use @font-face to implement special characters on web pages (create custom fonts)

>>:  Pure CSS to achieve the effect of picture blinds display example

Recommend

Learn MySQL index pushdown in five minutes

Table of contents Preface What is index pushdown?...

SQL Optimization Tutorial: IN and RANGE Queries

Preface "High Performance MySQL" mentio...

A brief discussion on the calculation method of key_len in mysql explain

The MySQL explain command can analyze the perform...

Form submission page refresh does not jump

1. Design source code Copy code The code is as fol...

Some tips on website design

In fact, we have been hearing a lot about web des...

Vue folding display multi-line text component implementation code

Folding display multi-line text component Fold an...

Beginners learn some HTML tags (1)

Beginners can learn HTML by understanding some HT...

jQuery plugin to achieve code rain effect

This article shares the specific code of the jQue...

mysql8.0 windows x64 zip package installation and configuration tutorial

MySQL 8 Windows version zip installation steps (d...

Introduction to Common XHTML Tags

<br />For some time, I found that many peopl...

Detailed explanation of the flexible use of CSS grid system in projects

Preface CSS grids are usually bundled in various ...

How to migrate mysql storage location to a new disk

1. Prepare a new disk and format it with the same...

N ways to cleverly implement adaptive dividers with CSS

Dividing lines are a common type of design on web...