Why do I want to add HTML annotation inside the style tag in CSS
I finally figured it out today.
Why add <!---->html annotation characters inside CSS style tags
Ashamed to say, the development has a little time, often look at the style tag contains this HTML annotation symbol, want to understand the reason, really did not find, the internet did not find the reason, may be their own way to find the wrong bar.
Let's move on to the next step.
Why do you want to add this annotation character?
In fact, in style with the <!----> because some of the lower version of the browser does not recognize the style tag, will be the contents of the style text directly to the page, in order to avoid this situation, it is best to add an annotation character, do not let it show.
Not only the high and low browser version of the problem, different browsers, the interpretation of the standard is not the same when the browser can recognize the style tag,<!----> the label will filter out, continue to execute the core style code;
When the browser does not recognize the style tag, the,<!----> works, which is the annotation function. is to block out the content, not to show it.