Course Content
Project file
0/1
Complete Web Designing Course for Beginners

MODULE 3 – CSS Fundamentals

πŸ† Lesson 3.9 – Mini Project: Beautiful Profile Card

🎨 Building a Professional Student Profile Card Using HTML & CSS


🎯 Learning Objectives

After completing this lesson, students will be able to:

βœ… Combine HTML and CSS Concepts

βœ… Create a Professional Profile Card

βœ… Apply Colors & Backgrounds

βœ… Use Fonts & Typography

βœ… Apply Borders & Shadows

βœ… Create Stylish Buttons

βœ… Build Real-World UI Components

βœ… Design Modern Website Sections


πŸ“– Introduction

Congratulations! πŸŽ‰

You have completed:

βœ… Introduction to CSS

βœ… Inline CSS

βœ… Internal CSS

βœ… External CSS

βœ… Colors & Backgrounds

βœ… Fonts & Typography

βœ… Borders & Shadows

βœ… Styling Links & Buttons

Now it’s time to combine everything into a real project.


🌟 What is a Profile Card?

A Profile Card is a small section that displays information about a person.

Examples:

Student Profile

Teacher Profile

Employee Profile

Developer Profile

Portfolio Website Card


🎯 Real World Example

You may have seen profile cards on:

  • LinkedIn
  • Facebook
  • Instagram
  • Portfolio Websites
  • College Websites

Example:

Β 
---------------------------------

Rahul Kumar

Polytechnic Student

Learning Web Designing

[ Contact Me ]

---------------------------------
Β 

🎯 Project Requirements

Our Profile Card will contain:

βœ… Name

βœ… Student Information

βœ… Skills

βœ… About Section

βœ… Contact Button

βœ… Beautiful Design


πŸ—οΈ Project Structure

Β 
Profile Card

-------------------------

Student Name

Student Information

Skills

About

Contact Button

-------------------------
Β 

πŸ’» Step 1 – Create HTML Structure

<!DOCTYPE html>

<html>

<head>

<title>Profile Card</title>

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

</head>

<body>

</body>

</html>

🎯 Step 2 – Create Card Container

Inside body:

<div class="card">

</div>

Why?

The card container will hold all profile information.


🎯 Step 3 – Add Student Name

<div class="card">

<h1>Rahul Kumar</h1>

</div>

Output

Student Name appears.


🎯 Step 4 – Add Student Information

<p>Polytechnic Student</p>

<p>Computer Science Branch</p>

Example

<div class="card">

<h1>Rahul Kumar</h1>

<p>Polytechnic Student</p>

<p>Computer Science Branch</p>

</div>

🎯 Step 5 – Add Skills

<h3>Skills</h3>

<ul>

<li>HTML</li>

<li>CSS</li>

<li>JavaScript</li>

</ul>

Output

Skills section appears.


🎯 Step 6 – Add About Section

Β 
Β 
<h3>About Me</h3>

<p>

I am learning Web Designing and
want to become a Full Stack Developer.

</p>

🎯 Step 7 – Add Contact Button

Β 
<button>

Contact Me

</button>

HTML Structure Completed

<div class="card">

<h1>Rahul Kumar</h1>

<p>Polytechnic Student</p>

<p>Computer Science Branch</p>

<h3>Skills</h3>

<ul>

<li>HTML</li>

<li>CSS</li>

<li>JavaScript</li>

</ul>

<h3>About Me</h3>

<p>

I am learning Web Designing and
want to become a Full Stack Developer.

</p>

<button>

Contact Me

</button>

</div>

🎨 Step 8 – Style Body

CSS

body{

background-color:#f5f5f5;

font-family:Arial;

}

Result

Light background.

Professional appearance.


🎨 Step 9 – Style Card

.card{

width:350px;

background-color:white;

padding:20px;

margin:auto;

}

Result

Card appears centered.


🎨 Step 10 – Add Border

.card{

border:2px solid blue;

}

Result

Blue border appears.


🎨 Step 11 – Add Rounded Corners

.card{

border-radius:15px;

}

Result

Modern rounded design.


🎨 Step 12 – Add Shadow

.card{

box-shadow:5px 5px 15px gray;

}

Result

Professional shadow effect.


🎨 Step 13 – Style Heading

h1{

color:blue;

text-align:center;

}

Result

Blue centered heading.


🎨 Step 14 – Style Paragraphs

p{

font-size:18px;

line-height:28px;

}

Result

Easy-to-read text.


🎨 Step 15 – Style Button

button{

background-color:green;

color:white;

padding:10px 20px;

border:none;

border-radius:10px;

}

Result

Modern green button.


🎨 Step 16 – Add Button Hover Effect

button:hover{

background-color:darkgreen;

cursor:pointer;

}

Result

Interactive button.


πŸ’» Complete Project Code

index.html

<!DOCTYPE html>

<html>

<head>

<title>Beautiful Profile Card</title>

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

</head>

<body>

<div class="card">

<h1>Rahul Kumar</h1>

<p>Polytechnic Student</p>

<p>Computer Science Branch</p>

<h3>Skills</h3>

<ul>

<li>HTML</li>

<li>CSS</li>

<li>JavaScript</li>

</ul>

<h3>About Me</h3>

<p>

I am learning Web Designing and
want to become a Full Stack Developer.

</p>

<button>

Contact Me

</button>

</div>

</body>

</html>

style.css

body{

background-color:#f5f5f5;

font-family:Arial;

}

.card{

width:350px;

background-color:white;

padding:20px;

margin:auto;

border:2px solid blue;

border-radius:15px;

box-shadow:5px 5px 15px gray;

}

h1{

color:blue;

text-align:center;

}

p{

font-size:18px;

line-height:28px;

}

button{

background-color:green;

color:white;

padding:10px 20px;

border:none;

border-radius:10px;

}

button:hover{

background-color:darkgreen;

cursor:pointer;

}

🎯 Expected Output

Β 
--------------------------------

Rahul Kumar

Polytechnic Student

Computer Science Branch

Skills

β€’ HTML
β€’ CSS
β€’ JavaScript

About Me

Learning Web Designing

[ Contact Me ]

--------------------------------
Β 

With:

βœ… Blue Border

βœ… Rounded Corners

βœ… Shadow Effect

βœ… Professional Button


🏫 Real World Applications

Profile cards are used in:

βœ… Portfolio Websites

βœ… College Websites

βœ… Student Management Systems

βœ… Employee Management Systems

βœ… Company Websites


🌟 Enhancement Ideas

Add:

βœ… Student Photo

βœ… Social Media Links

βœ… Email Address

βœ… Phone Number

βœ… Skill Progress Bars


⚠️ Common Beginner Mistakes


Mistake 1

Not Using External CSS

Keep CSS separate.


Mistake 2

Very Large Shadow

Wrong:

Β 
box-shadow:20px 20px 50px black;
Β 

Use:

Β 
box-shadow:5px 5px 15px gray;
Β 

Mistake 3

Too Many Colors

Limit to:

  • Blue
  • White
  • Gray
  • Green

Professional appearance.


🌟 Best Practices

βœ… Use professional colors.

βœ… Use rounded corners.

βœ… Add subtle shadows.

βœ… Use proper spacing.

βœ… Keep design clean.


πŸ† Final Mini Project Challenge

Create your own:

Student Profile Card

Include:

βœ… Name

βœ… College

βœ… Branch

βœ… Skills

βœ… About Me

βœ… Contact Button

Add your own styling.


πŸ“ Practical Activity

Create a profile card for yourself.

Include:

  • Name
  • College Name
  • Branch
  • Skills
  • Career Goal

Apply:

βœ… Border

βœ… Border Radius

βœ… Shadow

βœ… Hover Button

Run it in Chrome Browser.


πŸ“‹ Assignment

Assignment 3.9

  1. What is a Profile Card?
  2. Why are profile cards used?
  3. Which property creates shadows?
  4. Which property creates rounded corners?
  5. Create a profile card using HTML and CSS.
  6. Add a contact button.
  7. Add hover effects.

🧠 Quiz

Q1. Which property creates rounded corners?

A. border

B. radius

C. border-radius

D. round

βœ… Answer: C


Q2. Which property creates element shadows?

A. shadow

B. box-shadow

C. text-shadow

D. border-shadow

βœ… Answer: B


Q3. Which property changes background color?

A. color

B. bg

C. background-color

D. fill

βœ… Answer: C


Q4. Which property changes font style?

A. font-family

B. text-family

C. style

D. family

βœ… Answer: A


Q5. Which pseudo-class creates hover effects?

A. click

B. active

C. hover

D. over

βœ… Answer: C


πŸ“Œ Module 3 Summary – CSS Fundamentals

You have successfully learned:

βœ… Lesson 3.1 – Introduction to CSS

βœ… Lesson 3.2 – Inline CSS

βœ… Lesson 3.3 – Internal CSS

βœ… Lesson 3.4 – External CSS

βœ… Lesson 3.5 – Colors & Backgrounds

βœ… Lesson 3.6 – Fonts & Typography

βœ… Lesson 3.7 – Borders & Shadows

βœ… Lesson 3.8 – Styling Links & Buttons

βœ… Lesson 3.9 – Mini Project: Beautiful Profile Card

Scroll to Top