This module is designed for beginners who have already learned basic HTML concepts. It focuses on understanding how CSS works, how styles are applied, and how to create visually organized and readable web pages.
What Is CSS
CSS stands for Cascading Style Sheets. It is a styling language used to describe how HTML elements should be displayed on the screen. CSS controls colors, fonts, spacing, layout, and overall visual design.
By separating structure from presentation, CSS allows developers to maintain clean and organized code while making consistent design changes across a website.
Purpose of CSS
The main purpose of CSS is to enhance the visual presentation of web content. Without CSS, web pages would appear plain and difficult to read.
CSS improves readability, usability, and aesthetics, making websites more engaging and accessible to users.
How CSS Works
CSS works by selecting HTML elements and applying styles to them. A CSS rule consists of a selector and a set of style declarations.
The browser reads CSS rules and applies them to matching elements in the HTML document.
CSS Syntax
CSS syntax includes selectors, properties, and values. The selector identifies which HTML elements to style. Properties define what aspect of the element is being styled, and values specify how the style should appear.
Understanding syntax is essential for writing correct and effective CSS.
Ways to Apply CSS
CSS can be applied in different ways. It can be written directly inside an HTML file, embedded within the head section, or placed in an external file.
Using external CSS files is considered best practice because it improves organization and reusability.
Selectors in CSS
Selectors determine which elements a CSS rule applies to. Common selectors include element selectors, class selectors, and identifier selectors.
Selectors allow precise control over styling and help avoid unnecessary repetition.
Classes and Identifiers
Classes and identifiers are attributes used to target specific elements. Classes can be reused across multiple elements, while identifiers are unique.
Using classes and identifiers improves flexibility and organization in styling.
Colors in CSS
CSS allows developers to apply colors to text, backgrounds, borders, and other elements.
Colors can be defined using names, numeric values, or color codes. Choosing appropriate colors improves readability and visual appeal.
Fonts and Text Styling
Text styling includes font families, font sizes, font weight, and alignment.
Good typography enhances user experience and makes content easier to read.
Spacing and Layout
CSS controls spacing using properties that manage margins, padding, and borders.
Proper spacing creates balanced layouts and improves readability.
Box Model Concept
The box model describes how elements are structured on a webpage. Each element is considered a box with content, padding, border, and margin.
Understanding the box model is essential for designing accurate layouts.
Display Properties
Display properties control how elements appear and interact with other elements.
They determine whether elements appear on new lines or share space horizontally.
Positioning Elements
CSS provides properties to position elements on a page.
Positioning allows developers to control where elements appear within a layout.
Layout Techniques
CSS offers layout techniques that help arrange elements effectively.
Layouts help create structured and responsive designs.
Background Styling
Background properties control background colors and images.
Background styling adds depth and visual interest to web pages.
Borders and Shadows
Borders and shadows help define elements and create visual separation.
These styles enhance design clarity and aesthetics.
Responsive Design Basics
Responsive design ensures that websites look good on different screen sizes.
CSS allows flexible layouts that adapt to various devices.
CSS and Accessibility
CSS plays a role in accessibility by improving contrast, spacing, and readability.
Accessible design ensures that websites are usable by a wide range of users.
Common CSS Mistakes
Common mistakes include overusing styles and inconsistent naming.
Following best practices helps maintain clean and efficient CSS code.
Tools for Writing CSS
CSS can be written using code editors and tested in browsers.
Developer tools help inspect and debug styles.
Learning Outcomes of This Module
By completing this module, learners will understand CSS fundamentals.
They will be able to style HTML content and create visually appealing web pages.
Summary of Module Twenty Six
Module Twenty Six introduced CSS basics. Learners explored syntax, selectors, styling properties, layout concepts, and best practices.
The module emphasized clarity and practical understanding.
Conclusion
CSS is essential for modern web development. It transforms plain HTML into visually engaging websites. Module Twenty Six has provided learners with the skills needed to style web pages effectively.
With this foundation, learners are ready to continue exploring more advanced design and layout techniques in web development.

Name: Maimuna Jallow
ReplyDeleteCohort 1
Country: Gambia
Summary of what I learnt
1.Cascading style sheets (CSS) is a styling language use to describe how HTML elements should be displayed on the screen.
2. The purpose of CSS and how CSS works.
3. The syntax of CSS which includes selectors, properties, and values and ways to apply CSS.
4. Selectors in CSS determine which elements a CSS rule applies to, and classes and identifiers are attributes used to target specific elements.
5. Colors in CSS with fonts and text styling and spacing and layout.
6. Display properties with positioning elements and layout techniques.
7. The responsive design and common CSS mistakes.
8. Tools for writing CSS.
Andrew Yembeh Yandi Mansaray
ReplyDeleteCohort 1
Sierra Leone
I learnt that CSS (Cascading Style Sheets) is a language used to control how web pages look and feel. While HTML structures the content, CSS adds style by defining colors, fonts, sizes, spacing, and layout. This makes web pages more attractive and easier to read.
I also learnt that CSS works by selecting elements on a page and applying styles to them. For example, I can change the color of text, make headings bold, set background colors, and adjust how elements are spaced or aligned. CSS helps separate design from content, which makes web pages easier to update and maintain.
I learnt that CSS can be added in different ways: inside the same file as HTML, in a separate file that’s linked to the page, or directly on specific elements. Using a separate CSS file is useful because the same styles can be used on many pages, keeping designs consistent.
I also learnt that CSS uses rules made up of selectors and declarations. The selector chooses which part of the page the style applies to, and the declarations inside curly braces define what style changes to make. I also saw that properties like color, font-size, background, margin, and padding are common and help control layout and appearance.
Finally, I learnt that CSS basics are important because they give web pages a professional look and help improve how users experience the website. Once I understand these basics, I can start making webpages that don’t just work but also look good.
Full name: Arafat YACOUBOU
ReplyDeleteCohort: TechIqPro Cohort 1
Country: Togo
Module 26 – CSS Basics
- CSS (Cascading Style Sheets) is used to style and format web pages.
- It controls layout, colors, fonts, and spacing.
- Example: p {color: blue;} makes all paragraphs blue.
- CSS separates design from structure, making websites more attractive and consistent.
Full name : Jumuah kalinoh
ReplyDeleteCohort. : 1
Country. : Malawi
CSS is where the magic happens, turning plain HTML into visually stunning websites . Let's break it down.
positionin
CSS stands for Cascading Style Sheets, a styling language that describes how HTML elements should be displayed. It's all about controlling colors, fonts, spacing, layout, and overall visual design.
Why CSS Matters
- Enhances visual presentation and user experience
- Separates structure from presentation, making code cleaner and more maintainable
- Improves readability, usability, and accessibility
Key Concepts
- _Selectors_: target specific HTML elements to apply styles
- _Properties_: define what aspect of the element to style (e.g., color, font-size)
- _Values_: specify how the style should appear (e.g., red, 16px)
- _Box Model_: describes element structure (content, padding, border, margin)
Applying CSS
- Inline styles (directly in HTML)
- Internal styles (within HTML head)
- External styles (separate CSS file, best practice)
Common CSS Properties
- Colors and backgrounds
- Fonts and text styling
- Spacing and layout (margins, padding, borders)
- Display and positioning
Lenemiria Benson
ReplyDeleteCohort 1
Kenya
CSS (Cascading Style Sheets) controls the appearance and layout of web pages.
While HTML provides structure, CSS handles colors, fonts, spacing, and design.
CSS separates content from presentation, keeping code clean and organized.
Purpose of CSS
Improves visual appeal, readability, usability, and accessibility.
Turns plain HTML into attractive, user-friendly websites.
How CSS Works
CSS applies styles to HTML using selectors and rules.
Each rule contains a selector, properties, and values.
Ways to Apply CSS
Inline (inside elements)
Internal (inside the HTML head)
External (separate CSS file – best practice)
Selectors, Classes, and IDs
Selectors target elements to style.
Classes can be reused.
IDs are unique.
Core Styling Concepts
Colors and backgrounds
Fonts and text formatting
Margins, padding, and borders
Box model (content + padding + border + margin)
Layout and Positioning
Display and positioning control element placement.
CSS layout techniques help create organized designs.
Responsive design allows pages to adapt to different screen sizes.
Visual Enhancements
Backgrounds, borders, and shadows add depth.
Proper spacing improves readability.
Accessibility
Good contrast, spacing, and font choices make sites usable for everyone.
Common Mistakes
Overstyling
Poor naming
Disorganized CSS
Tools
Code editors and browser developer tools help write and debug CSS.
Learning Outcomes
Style HTML pages
Apply layouts and spacing
Build visually appealing, readable websites
Chibuzo Hillary Azikiwe
ReplyDeleteCohort 1
Nigeria
Module 26: My Journey into CSS Styling
I have moved from structure to style by mastering CSS (Cascading Style Sheets). I’ve learned that while HTML provides the "bones," CSS provides the "beauty." I’ve mastered the syntax of selectors, properties, and values, and I now know how to target specific HTML elements to change their color, font, size, and position. I’ve spent a lot of time learning the "Box Model," which has taught me that every element on a page is essentially a box with margins, borders, padding, and content.
I’ve also learned the "Cascading" part of CSS—how styles can be inherited and how different rules can override each other based on specificity. I’ve explored layout techniques, from simple floats to more modern approaches, allowing me to create designs that look good on any screen size. This module has turned me from a technical coder into a designer of sorts, giving me the tools to create user interfaces that are not only functional but also visually engaging and professional.
Tajudeen Ahmad olanrewaju
ReplyDeleteCohort 1
Nigeria 🇳🇬
This section introduces CSS as the tool for styling web pages and making them visually appealing. It explains that beginners often make mistakes like overusing styles or using inconsistent naming for classes and IDs, which can make the code messy and harder to maintain. Following best practices helps keep CSS organized, clean, and efficient.
CSS can be written in code editors and tested directly in web browsers. Developer tools in browsers are especially useful for inspecting elements, debugging styles, and experimenting with changes in real time, which makes learning and refining CSS much easier.
By the end of this module, learners are expected to understand the fundamentals of CSS. They will be able to style HTML content effectively, control layout, colors, fonts, and other visual elements, and create web pages that are both functional and visually attractive.