HTML TUTORIALS-
-HTML Responsive Web Design Tag β
Introduction-
πΉThis HTML responsive web design examples that demonstrate how to make a website look good on all devices (desktops, tablets, and phones) using basic HTML and CSS....
β Example 1: Responsive Layout with Media Queries:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Layout</title>
<style>
.container {
display: flex;
flex-wrap: wrap;
}
.box {
flex: 1 1 200px;
margin: 10px;
padding: 20px;
background-color: #90caf9;
text-align: center;
}
@media (max-width: 600px) {
.box {
flex: 1 1 100%;
}
}
</style>
</head>
<body>
<h2>Responsive Flexbox Layout</h2>
<div class="container">
<div class="box">Box 1</div>
<div class="box">Box 2</div>
<div class="box">Box 3</div>
</div>
</body>
</html>