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

Lesson 5.1 – What is Responsive Design?

🌐 Creating Websites That Work on Mobile, Tablet, Laptop, and Desktop Screens


🎯 Learning Objectives

After completing this lesson, students will be able to:

βœ… Understand Responsive Design

βœ… Identify Different Screen Sizes

βœ… Understand Why Responsive Websites Are Important

βœ… Learn Mobile-Friendly Design Concepts

βœ… Create Better User Experiences

βœ… Prepare for Media Queries

βœ… Build Modern Websites


πŸ“– Introduction

Imagine you create a beautiful website on your laptop.

On your laptop it looks like:

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

WELCOME TO MY WEBSITE

Home About Contact

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

Looks perfect.


Now open the same website on a mobile phone.

Β 
WELCOME TO MY WEBSITE

Home About Contact
Β 

Everything may become:

❌ Too small

❌ Difficult to read

❌ Difficult to click

❌ Poor user experience


This problem is solved using:

πŸ“± Responsive Web Design


πŸ€” What is Responsive Design?

Responsive Design means:

Β 
A website automatically adjusts
its layout according to screen size.
Β 

A responsive website works properly on:

πŸ“± Mobile Phones

πŸ“± Tablets

πŸ’» Laptops

πŸ–₯️ Desktop Computers


🌟 Simple Definition

Responsive Design is a web design technique that makes websites look good on every device.


🎯 Example

Non-Responsive Website

Desktop:

Β 
HTML CSS JS React
Β 

Mobile:

Β 
HTML CSS JS React
Β 

Everything becomes squeezed.


Responsive Website

Desktop:

Β 
HTML CSS JS React
Β 

Mobile:

Β 
HTML

CSS

JS

React
Β 

Automatically adjusted.


🌍 Why Responsive Design is Important?

Today most internet users use:

πŸ“± Smartphones

instead of:

πŸ–₯️ Desktop Computers


Statistics show:

More than half of website visitors use mobile devices.


If your website is not responsive:

❌ Visitors leave quickly

❌ Poor user experience

❌ Lower search ranking

❌ Difficult navigation


Responsive websites:

βœ… Look professional

βœ… Increase visitors

βœ… Improve usability

βœ… Work on all devices


🎯 Types of Devices


πŸ“± Mobile Phones

Screen Width:

Β 
320px – 767px
Β 

Examples:

  • Android Phones
  • iPhone

πŸ“± Tablets

Screen Width:

Β 
768px – 1023px
Β 

Examples:

  • iPad
  • Android Tablets

πŸ’» Laptops

Screen Width:

Β 
1024px – 1439px
Β 

πŸ–₯️ Desktop Computers

Screen Width:

Β 
1440px and above
Β 

🌟 Responsive Website Example

Desktop View:

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

LOGO

HOME ABOUT CONTACT

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

SERVICE 1 | SERVICE 2 | SERVICE 3

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

Mobile View:

Β 
LOGO

HOME

ABOUT

CONTACT

SERVICE 1

SERVICE 2

SERVICE 3
Β 

Same website.

Different arrangement.


🎯 Why Old Websites Fail

Older websites often used:

width:1200px;

Fixed width.


Problem:

Mobile screen:

Β 
400px
Β 

Website:

Β 
1200px
Β 

Result:

❌ Horizontal scrolling

❌ Broken layout


🌟 Modern Responsive Websites Use

Instead of:

width:1200px;

Use:

width:100%;

Or:

max-width:1200px;

Benefits:

βœ… Flexible Layout

βœ… Better Mobile Experience


🎯 Responsive Design Principles

Modern websites follow:


Principle 1

Flexible Layouts

Example:

width:100%;

Principle 2

Responsive Images

Example:

img{

width:100%;

}

Images automatically resize.


Principle 3

Responsive Grids

Example:

display:grid;

or

display:flex;

Principle 4

Media Queries

Example:

@media

Used to change design according to screen size.


🌟 Real World Example

YouTube

Desktop:

Β 
Video Video Video Video
Β 

Mobile:

Β 
Video

Video

Video
Β 

Amazon

Desktop:

Β 
Product Product Product Product
Β 

Mobile:

Β 
Product

Product

Product
Β 

Facebook

Desktop:

Β 
Sidebar Feed Sidebar
Β 

Mobile:

Β 
Feed
Β 

Only important content shown.


🎯 Responsive vs Non-Responsive

Feature Responsive Non-Responsive
Mobile Friendly βœ… ❌
Tablet Friendly βœ… ❌
Better UX βœ… ❌
Modern Design βœ… ❌
Professional βœ… ❌

🌟 Basic Responsive Example

HTML

<div class="box">

Responsive Website

</div>

CSS

.box{

width:80%;

margin:auto;

background-color:lightblue;

padding:20px;

}

Why Responsive?

width:80%;

adapts to screen size.


🎯 Responsive Navigation Example

Desktop:

Β 
Home About Contact Services
Β 

Mobile:

Β 
Home

About

Contact

Services
Β 

Automatically adjusted using responsive techniques.


🌟 Responsive Images

Wrong:

img{

width:1000px;
}

Correct:

img{

max-width:100%;

height:auto;
}

Benefits:

βœ… No overflow

βœ… Mobile friendly


πŸ’» Complete Practical Program

HTML

<!DOCTYPE html>

<html>

<head>

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

</head>

<body>

<div class="container">

<h1>

Welcome Students

</h1>

<p>

Learning Responsive Design

</p>

</div>

</body>

</html>

CSS

Β 

🎯 Exp

body{

font-family:Arial;

}

.container{

width:80%;

margin:auto;

padding:20px;

background-color:lightyellow;

border:2px solid orange;

}

ected Output

Responsive container:

βœ… Adapts to screen size

βœ… Centers automatically

βœ… Mobile friendly


🏫 Real World Examples

Responsive Design is used in:

βœ… Google

βœ… YouTube

βœ… Amazon

βœ… Facebook

βœ… Instagram

βœ… LinkedIn

βœ… Educational Websites


⚠️ Common Beginner Mistakes


Mistake 1

Using Fixed Width

Wrong:

width:1200px;

Better:

width:100%;

Mistake 2

Large Images

Wrong:

img{

width:2000px;
}

Better:

img{

max-width:100%;
}

Mistake 3

Ignoring Mobile Devices

Always test on:

πŸ“± Mobile

πŸ’» Laptop

πŸ–₯️ Desktop


🌟 Best Practices

βœ… Use percentages.

βœ… Use max-width.

βœ… Use responsive images.

βœ… Use Flexbox and Grid.

βœ… Test on different screen sizes.


πŸ† Mini Project – Responsive Information Card

Create a card containing:

Β 
Student Name

College Name

Branch
Β 

Apply:

width:80%;

max-width:500px;

margin:auto;

πŸ“ Practical Activity

Create a responsive container.

Requirements:

βœ… Width = 80%

βœ… Max Width = 600px

βœ… Center Alignment

βœ… Background Color

Observe behavior when browser size changes.


πŸ“‹ Assignment

Assignment 5.1

  1. What is Responsive Design?
  2. Why is Responsive Design important?
  3. Which devices use responsive websites?
  4. What is the difference between responsive and non-responsive websites?
  5. Why should images be responsive?
  6. Create a responsive container.
  7. Explain the importance of mobile-friendly websites.

🧠 Quiz

Q1. What is Responsive Design?

A. Fixed Website

B. Mobile App

C. Website adapting to screen size

D. Database

βœ… Answer: C


Q2. Which unit is more responsive?

A. px

B. %

C. cm

D. mm

βœ… Answer: B


Q3. Which property helps responsive images?

A. width:2000px

B. max-width:100%

C. height:500px

D. size:auto

βœ… Answer: B


Q4. Which devices require responsive design?

A. Mobile

B. Tablet

C. Desktop

D. All of These

βœ… Answer: D


Q5. Responsive websites provide?

A. Better User Experience

B. Poor Layout

C. Broken Design

D. None

βœ… Answer: A


πŸ“Œ Lesson Summary

βœ… Responsive Design allows websites to adapt to different screen sizes.

βœ… Modern websites must support mobile, tablet, laptop, and desktop devices.

βœ… Responsive layouts improve user experience.

βœ… Percentages and max-width help create flexible designs.

βœ… Responsive design is a fundamental skill for modern web developers.

Scroll to Top