CSS Documentation

Introduction to CSS

Introduction to CSS

CSS is a language that describes the style of an HTML document. CSS describes how HTML elements should be displayed. This tutorial will teach you CSS from basic to advanced.

CSS can be added to HTML documents in a number of ways:

  • Inline - by using the style attribute inside HTML elements
  • <p style="color: red;">This is a paragraph.</p>
  • External - by using a link to an external CSS file
  • <link rel="stylesheet" href="styles.css"> // In the head section
  • Internal - by using a style element in the head section
  • <style>
    p {
    ㅤㅤcolor: red;
    }
    </style>