Web Programming Lab - Class 04 Documentation

Date: October 21, 2025
Department: Computer Science & Engineering
Institution: Green University of Bangladesh

📚 Class Overview

Class 04 focused on advanced CSS styling techniques, including CSS pseudo-classes, element positioning, color systems, and table styling. Students learned how to create interactive web elements and implement professional styling approaches.

🎯 Learning Objectives

💻 Topics Covered

1. CSS Pseudo-Classes

Example Implementation:
.A:hover {
    color: red;
}
.A:active {
    color: green;
}   
.A:link {
    color: orange;
}

Purpose: These pseudo-classes provide interactive feedback to users when they interact with links.

2. Element Centering Techniques

Centering Method Used:
.d {
text-align: center;
margin: 20px auto;
width: 80%;
}

Explanation:

3. Color Systems

HSL Color System Implementation:
.aa { color: hsl(0, 80%, 50%); }    /* Red */
.bb { color: hsl(240, 80%, 50%); }  /* Blue */
.cc { color: hsl(120, 80%, 50%); }  /* Green */
.dd { color: hsl(60, 80%, 50%); }   /* Yellow */

HSL Benefits: More intuitive than RGB for color manipulation and theming.

4. Background Image Styling

body {
    background-image: url("image_03.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: 100% 100%;
}

5. Table Styling and Structure

Professional Table Styling:
table, th, td {
    text-align: center;
    border: 1px solid purple;
    border-collapse: collapse;
    padding: 10px;
}

th {
    background-color: blueviolet;
}

👥 Class Participants

Student Name Student ID Course
Majharul Islam 232002256 CSE
Amar 232002257 CSE
Rafiq Ahmed 232002258 CSE

🔧 Technical Skills Developed

Skill Implementation Application
CSS Pseudo-classes :hover, :active, :link Interactive user interface elements
Element Positioning margin: auto, text-align: center Responsive layout design
Color Systems HSL, RGB values Consistent color theming
Background Styling background properties Professional page backgrounds
Table Design border-collapse, padding Data presentation

📝 Key Takeaways

🚀 Next Steps

  1. Practice implementing more complex pseudo-class combinations
  2. Explore CSS Grid and Flexbox for advanced layouts
  3. Learn responsive design principles
  4. Study CSS animations and transitions
  5. Implement JavaScript for dynamic interactions

📁 Files Created/Modified

Documentation Created: October 21, 2025
Instructor: Web Programming Lab
Department: CSE, Green University of Bangladesh