Lecture_5_Introduction to CSS & Basic Styling
Objective: Understand the fundamentals of CSS and learn basic styling techniques.
Duration: 80 minutes
Topics Covered:
What is CSS?
Definition and importance of CSS in web development.
Separation of HTML structure from CSS styling.
Three Ways to Insert CSS
Inline CSS, Internal CSS, External CSS.
Pros and cons of each method.
CSS Syntax
Understanding selectors, properties, and values.
Basic syntax:
selector { property: value; }
Basic Selectors
Type, ID, and Class selectors.
CSS Colors
Color formats: Predefined colors, RGB, HEX, HSL.
Student Activity:
Create a simple HTML page and apply CSS styling using both inline, internal, and external methods. Change text color and background color using different color formats.
Homework/Practice:
Style an HTML page by applying CSS to headings, paragraphs, and a list. Use both ID and class selectors.
Last updated