Comments & Fonts of CSS

Comments & Fonts of CSS

 CSS Comments

Comments are used in CSS to explain a block of code or to make temporary changes during development and may help when you edit the source code at a later date. The comments are ignored by the Web Browser’s.

Note::- Both “Single” and “Multi-Line Comments” in CSS begin with /* and end with */, and you can add as many comments to your style sheet.

CSS Fonts

 CSS fonts offer numerous properties for vogue the font of the text, as well as dynamic their face, dominant their size and boldness, managing variant, etc.

 The font properties are:

  • font-style
  • font-family
  •  font-weight
  • font-size
  • font-variant

 Font Style

The ” font-style “ property is employed to line the font face vogue for the text content of part. The font vogue will be “normal”, “italic” or “oblique”.

 Note:- The default worth is “normal”.

 Font Family

The ” font-family “ property is employed to line the font to be accustomed render the text. The list of font family accustomed set the text are :- line, sans-serif, monospace, cursive and fantasy.

 Note:- the foremost ordinarily used font family in planning area unit ” line and sans-serif”, as a result of they’re a lot of appropriate for reading. Where as, The “cursive fonts” seem like handwriting or cursive writing.

Font Weight

 The ” font-weight “ Property is employed to specify the load and boldness of the text. The font -wight area unit specify consistent with the given following values are:- 100 200, 300, 400, 500, 600, 700, 800, 900, normal, bold, bolder, lighter.

 Font Size

 The ” font-size “ property is employed to line the scale of font for the text. the subsequent ways in which to specify the font size values. e.g. with proportion, pixels, keywords, ems, etc.

 Font Varient

The ” font-variant “ property permits the text to be displayed in an exceedingly special small-caps variation. Small-caps or upper-case letter letters area unit slightly totally different to traditional capital letters, within which minuscule letters seem as smaller versions of the corresponding majuscule letters.