About HTML styles-CSS detailed introduction

高洛峰
Release: 2017-03-22 14:12:26
Original
1682 people have browsed it

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