Skip to content

PLP-WebTechnologies/plp-webtechnologies-classroom-safaricom-hook-introduction-to-css-week-3-safaricom-hook-intro-to-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 

Repository files navigation

πŸŽ“ CSS Basics Assignment

Assignment Title

"Mastering CSS Basics: Styling Your First Web Page"


πŸ“‹ Objectives

  • Understand the use of CSS selectors, properties, and values.
  • Apply inline, internal, and external CSS to style web pages.
  • Utilize basic CSS properties to control colors, fonts, alignment, padding, and margins.

πŸ“‚ Assignment Tasks

Part 1: CSS Basics - Selectors, Properties, and Values (20 Points)

  1. Create an HTML file with at least three different types of elements (e.g., <h1>, <p>, <div>).
  2. Style these elements using:
    • Element Selector: Change the font size of all headings.
    • Class Selector: Apply a background color to specific sections.
    • ID Selector: Add a border to an element with a unique ID.

Part 2: Inline, Internal, and External CSS (30 Points)

  1. Use inline CSS to style one element (e.g., change the text color).
  2. Add internal CSS in the <style> tag within the <head> section to style at least three elements.
  3. Create a separate external CSS file and link it to your HTML. Use it to:
    • Change the background color of the webpage.
    • Style links with hover effects.

Part 3: Basic Styling Properties (50 Points)

  1. Apply the following styles:

    • Colors: Set text and background colors for different elements.
    • Font Styles: Change the font family, size, and weight of text.
    • Text Alignment: Center-align, left-align, or justify text in paragraphs.
    • Spacing: Add padding and margin to elements for proper spacing.
  2. Create a simple card component using these styles:

    • A heading for the card title.
    • A paragraph with some description.
    • Add padding inside the card and a margin around it.
    • Use a light background color and a subtle border.

This assignment will solidify your CSS basics while giving you a chance to style your first webpage creatively. Good luck and happy styling! πŸŽ¨πŸš€

About

plp-webtechnologies-classroom-safaricom-hook-introduction-to-css-week-3-safaricom-hook-intro-to-css created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published