CSS Basics


HTML defines the content of a page, but CSS (Cascading Style Sheets) defines how that content looks. With CSS you control colors, fonts, spacing, layout, and much more.

There are three ways to add CSS to a page:

  • An inline style attribute directly on an element: style="color: red;".
  • A \n \n \n

    Hello, World!

    \n

    This paragraph is important.

    \n \n", "solution": "\n\n \n CSS Basics\n \n \n \n

    Hello, World!

    \n

    This paragraph is important.

    \n \n", "is_tutorial": true, "back_chapter": "Basic_Elements", "next_chapter": "CSS_Basics"};