Home  >  Article  >  Web Front-end  >  About HTML styles-CSS detailed introduction

About HTML styles-CSS detailed introduction

高洛峰
高洛峰Original
2017-03-22 14:12:261729browse

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


  • # in an HTML element
  • ## Internal style sheet - use the


    External style sheet

    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.



    HTML style tag

    Label describe