Home >Web Front-end >CSS Tutorial >Introduction to CSS
Welcome to the first lecture of "Basic to Brilliance" - your journey to mastering CSS starts here!
CSS, or Cascading Style Sheets, is the language used to describe the presentation of a web page. While HTML provides the structure and content, CSS is what makes the web pages look attractive and user-friendly. It controls the layout, colors, fonts, spacing, and much more.
CSS is made up of rules that target HTML elements. Each rule consists of a selector and a declaration block.
selector { property: value; }
Let’s say you want to change the color of all
HTML:
<h1>Hello, World!</h1>
CSS:
h1 { color: blue; }
This simple rule will turn the text in all
There are three main ways to add CSS to your HTML document:
<h1 style="color: blue;">Hello, World!</h1>