|
1 | 1 | { |
2 | 2 | "id": "css-fundamentals", |
3 | | - "title": "CSS Fundamentals: The Language of Web Design", |
| 3 | + "title": "101 Rules and Selectors", |
4 | 4 | "description": "Cascading Style Sheets (CSS) form the cornerstone of modern web presentation. This module provides a comprehensive introduction to CSS syntax, selectors, properties, and core design concepts. You'll develop a deep understanding of how CSS empowers web developers to control visual aesthetics, layout, and responsive behavior across digital interfaces. Throughout these lessons, we'll build a robust foundation that prepares you for more advanced web engineering topics.", |
5 | 5 | "difficulty": "beginner", |
6 | 6 | "lessons": [ |
7 | 7 | { |
8 | 8 | "id": "css-syntax-structure", |
9 | 9 | "title": "CSS Syntax: The Building Blocks", |
10 | | - "description": "CSS (Cascading Style Sheets) follows a structured syntax that consists of selectors targeting HTML elements and declaration blocks defining their styling. A declaration block contains one or more declarations separated by semicolons, with each declaration consisting of a property and value pair. This fundamental structure forms the basis of all CSS rules and allows for precise control over web page presentation. Understanding this syntax is critical for effectively implementing any styling on the web.", |
| 10 | + "description": "CSS (Cascading Style Sheets) follows a structured syntax that consists of selectors targeting HTML elements and declaration blocks defining their styling. A declaration block contains one or more declarations separated by semicolons, with each declaration consisting of a property and value pair. This fundamental structure forms the basis of all CSS rules and allows for precise control over web page presentation. Understanding this syntax is critical for effectively implementing any styling on the web.<br><br><pre>/* Element selctor */\np {\n color: orangered;\n /* │ └─── Indicates the value of the expression\n │ \n └─────────── Indicates the property of the expression */\n}</pre>", |
11 | 11 | "task": "Complete the CSS rule by providing a valid selector that targets all paragraph elements (p). This selector should apply to every paragraph on the page. Notice how the declaration block is already structured with the property-value pair 'color: blue;'.", |
12 | 12 | "previewHTML": "<p>This paragraph should be blue.</p><p>This paragraph should also be blue.</p><div>This div element should remain unchanged.</div>", |
13 | 13 | "previewBaseCSS": "body { font-family: Arial, sans-serif; padding: 20px; line-height: 1.6; }", |
|
35 | 35 | "previewHTML": "<h2>This is a heading that needs styling</h2><p>This is a paragraph that should remain unchanged.</p><h2>This is another heading that needs the same styling</h2>", |
36 | 36 | "previewBaseCSS": "body { font-family: Arial, sans-serif; padding: 20px; line-height: 1.6; }", |
37 | 37 | "sandboxCSS": "h2, p { border: 1px dashed #ccc; padding: 10px; margin-bottom: 10px; }", |
38 | | - "codePrefix": "/* Write an element selector for h2 elements and set their color and text-decoration */\n", |
| 38 | + "codePrefix": "", |
39 | 39 | "initialCode": "", |
40 | 40 | "codeSuffix": " {\n color: red;\n text-decoration: underline;\n}", |
41 | 41 | "previewContainer": "preview-area", |
|
0 commit comments