Introduction to CSS Programming
Introduction to CSS Programming
Course Description:
Course Objectives:
Course Outline:
What is CSS?
CSS vs. HTML
Types of CSS:
o Inline CSS
o Internal CSS
o External CSS
Anatomy of a CSS Rule: selector { property: value; }
Linking CSS to HTML (<link> and <style>)
Basic Selectors:
o Type Selector (h1, p)
o Class Selector (.classname)
o ID Selector (#idname)
Group and Universal Selectors (*, grouping with commas)
Advanced Selectors:
o Attribute Selectors
o Pseudo-classes (:hover, :nth-child())
o Pseudo-elements (::before, ::after)
Color Models:
o Named Colors
o HEX, RGB, RGBA, HSL, HSLA
Typography:
o Fonts: font-family
o Sizes: font-size, rem, em, px, %
o Weight, Style, and Variant (font-weight, font-style)
o Line Spacing and Letter Spacing (line-height, letter-spacing)
Web-safe fonts and Google Fonts
Links:
o Pseudo-classes: :link, :visited, :hover, :active
o Customizing buttons with CSS
Lists:
o Styling Ordered and Unordered Lists
o Custom List Markers
Forms:
o Styling input fields, buttons, checkboxes, and dropdowns
o Adding focus and validation effects with :focus and :valid
Transitions:
o Syntax: transition-property, transition-duration, transition-timing-
function
o Hover effects
Transformations:
o Scaling, Rotating, Skewing, Translating
Animations:
o @keyframes syntax
o animation-name, animation-duration, animation-iteration-count
o Chaining animations
Module 9: CSS Best Practices
Assessment:
References:
Schedule:
Duration: 8 Weeks
Weekly Sessions: 2 hours/session (Lecture + Hands-on Practice)
Final Project Presentation: Week 9
This syllabus is designed to ensure students gain both theoretical knowledge and practical skills
to master CSS.