How to Add CSS

When a browser reads a style sheet, it will format the HTML document according to the information in the style sheet.

There are three ways of inserting a style sheet:

  1. External CSS - link to an external .css file
  2. Internal CSS - use the <style> element in the head section
  3. Inline CSS - use the style attribute on HTML elements