SyntaxStudy
Sign Up
CSS Beginner 1 min read

What is CSS?

What is CSS?

CSS stands for Cascading Style Sheets. It controls the visual presentation of HTML elements — colours, fonts, spacing, layout, and more.

The Relationship: HTML + CSS

  • HTML = structure (the skeleton)
  • CSS = style (the clothing)

Three Ways to Add CSS

  1. Inlinestyle attribute on an element (lowest priority to maintain)
  2. Internal<style> block in the <head>
  3. External — Separate .css file linked with <link> (best practice)
Example
/* Inline */
<p style="color: blue;">Blue text</p>

/* Internal — inside <head> */
<style>
  p { color: blue; }
</style>

/* External — linked file */
<link rel="stylesheet" href="styles.css">

/* styles.css */
p {
  color: blue;
  font-size: 16px;
}