# CSS & Styling > Seventh graders learn the split that powers the web: HTML gives a page its structure, and CSS gives it its style — colors, fonts, spacing, and layout. They… **Computer Science** | **Grade 7** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g7-cs-css.html* Seventh graders learn the split that powers the web: HTML gives a page its structure, and CSS gives it its style — colors, fonts, spacing, and layout. They sort structure from style, then restyle a page. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Tell **structure** from **style**. - Change **colors & fonts** with CSS. - Use a **selector** and a property. - Restyle a page. How do HTML and CSS work together to build a page? ## HTML or CSS? Project this and sort each item into HTML (structure) or CSS (style). ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Same Page, New Look How can two pages have the same words but look totally different? #### 👩‍🏫 Teacher Moves - Show one page in two styles. - Ask what changed. - Set the goal. #### 🎒 Student Actions - Look. - Guess. - Get ready. ### Use — CSS & Styling Students use CSS. #### 👩‍🏫 Teacher Moves - Send students to HTML or CSS? - Sort each item. - Note structure vs style. #### 🎒 Student Actions - Sort. - Say. - Note it. ### Modify — Restyle It Students modify. #### 👩‍🏫 Teacher Moves - Change a text color. - Make text bold. - Add spacing with a margin. #### 🎒 Student Actions - Change. - Bold. - Space. ### Create — Style a Page Students create. #### 👩‍🏫 Teacher Moves - Pick a color scheme. - Style the heading and body. - Preview the result. #### 🎒 Student Actions - Pick. - Style. - Preview. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - Say what HTML does. - Say what CSS does. - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students. Incorporate existing code and media, with attribution. Document a program so others can follow it. Decompose a problem (structure vs style) into parts. Design content for a purpose. ## One lesson, every learner ### Multilingual Learners - Structure vs style cards. - Frame: “HTML = what, CSS = how it looks.” - Point to examples. ### Support & Access - Sort structure vs style only. - Change one color. - Use a style template. ### Stretch & Extend - Use a class selector. - Add a hover effect. - Make a responsive layout. ### What to gather - 📽️Screen / board - 🎨HTML/CSS cards - 💻HTML or CSS? - 🌐A code editor - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **CSS**: the language that styles web pages - **style**: the look: color, font, spacing, layout - **selector**: what element the style applies to - **property**: what you change (e.g. color) - **value**: the setting (e.g. blue) - **font**: the typeface of the text - **margin**: space around an element - **layout**: how elements are arranged ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: CSS & styling. Have students name two things CSS can change on a page. A printable CSS worksheet is in the Computer Science library. ## Check your understanding **1. What does “CSS” mean?** - the typeface of the text - what you change (e.g. color) - the language that styles web pages *(correct)* - the setting (e.g. blue) “CSS” means: the language that styles web pages **2. Which word means: “the look: color, font, spacing, layout”?** - layout - value - style *(correct)* - font “style” means: the look: color, font, spacing, layout **3. What does “selector” mean?** - what you change (e.g. color) - the look: color, font, spacing, layout - what element the style applies to *(correct)* - the typeface of the text “selector” means: what element the style applies to **4. Which word means: “what you change (e.g. color)”?** - property *(correct)* - margin - CSS - value “property” means: what you change (e.g. color) **5. What does “value” mean?** - what you change (e.g. color) - the setting (e.g. blue) *(correct)* - space around an element - the language that styles web pages “value” means: the setting (e.g. blue) **6. Which word means: “the typeface of the text”?** - style - font *(correct)* - margin - property “font” means: the typeface of the text ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g7-cs-css.html All lessons: https://lessonplans.k12academics.com/