HTML & CSS Course
HTML & CSS
/
Beginner

What is CSS?

Definition

Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in HTML.

Explain Like I'm New

If HTML is the bricks and structure of a house, CSS is the interior design. CSS tells the browser what color the walls should be, how big the windows are, and where the furniture is placed.

Real World Example

Writing `color: red; font-size: 20px;` to turn boring black HTML text into big red text.

Common Use Cases

  • •Styling websites
  • •Creating responsive layouts
  • •Adding animations

Interactive Example

Interview Questions

basic

  • What does the 'C' in CSS stand for?

intermediate

  • What are the three ways to add CSS to an HTML document?

Flash Cards

Question

What does C stand for?

Click to reveal answer
Answer

Cascading. It means styles fall down like a waterfall. If you set the body to be blue, all paragraphs inside the body 'cascade' and become blue as well (unless overridden).

Question

Three ways?

Click to reveal answer
Answer

1. Inline (inside the HTML tag: `style="..."`). 2. Internal (inside a `<style>` tag in the `<head>`). 3. External (linking to a separate `.css` file).