1. Overview of web development technologies: HTML, CSS, JavaScript, and PHP.

1.1. CSS (CASCADING STYLE SHEETS)

CSS (CASCADING STYLE SHEETS)

Definition

CSS is used to control the appearance and layout of web content structured with HTML. It separates content from presentation, allowing consistent styling across multiple pages.

Features

  1. Style rules apply to elements via selectors (element, class, ID, etc.).
  2. Supports color, spacing, alignment, fonts, and animations.
  3. Enables responsive design through media queries.
  4. Can be applied inline, internally (<style>), or externally via .css files

Syntax Example

body {

    background-color: #ffffff;

    font-family: 'Arial', sans-serif;

    margin: 0;

    padding: 0;

}

h1 {

    color: #2c3e50;

    text-align: center;

}

Applying CSS

<head>

    <link rel="stylesheet" href="style.css">

</head>

Role in Web Development

CSS ensures that a website is visually appealing and consistent. It plays a critical role in user experience (UX) and interface design.