How to use CSS
CSS was started in HTML 4 and was introduced for better rendering of HTML elements.
CSS can be added to HTML in the following ways:
Inline styles - use the "style" attribute
External style sheets are ideal when styles need to be applied to many pages. Using external style sheets, you can change the look of your entire site by changing one file.
Label | describe |
---|---|
Define text style | |
Define resource reference address |
In HTML 4, the tags and attributes that originally supported defining styles for HTML elements have been deprecated. These tags will not support the new version of the HTML tag.
Tags that are not recommended for use include: ,
Deprecated properties: color and bgcolor.
The above is the detailed content of About HTML styles-CSS detailed introduction. For more information, please follow other related articles on the PHP Chinese website!