8.6
Styling with CSS (8.6) is a Class 9 Computer Science lesson for the Punjab boards. It walks through the idea in plain steps, then sets a short check, in English, Urdu or Roman Urdu.
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
Chapter 1 of every subject is free. Unlock every chapter of this class with the full course.
Unlock full courseAlready paid? Sign in with the Google account you paid with.
CSS (Cascading Style Sheets) controls colours, fonts and layout, keeping design separate from content. A rule is selector { property: value; }, e.g. h1 { color: red; font-size: 24px; }.
Three ways to add CSS: inline (style attribute on one element) and internal (<style> in <head>, one page). External uses a .css file linked with <link>; it suits many pages and big sites.
Fonts: font-family, font-size, font-weight, font-style. Backgrounds: background-color, background-image, background-repeat, background-position and background-size.
Step 1 / 1
CSS (Cascading Style Sheets) controls colours, fonts and layout, keeping design separate from content. A rule is selector { property: value; }, e.g. h1 { color: red; font-size: 24px; }.
Three ways to add CSS: inline (style attribute on one element) and internal (<style> in <head>, one page). External uses a .css file linked with <link>; it suits many pages and big sites.
Fonts: font-family, font-size, font-weight, font-style. Backgrounds: background-color, background-image, background-repeat, background-position and background-size.
selector { property: value; }
Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.
No ads. Tell us what to fix.