-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuilding-responsive-websites-a-step-by-step-guide-for-beginners.html
More file actions
205 lines (198 loc) · 9.75 KB
/
building-responsive-websites-a-step-by-step-guide-for-beginners.html
File metadata and controls
205 lines (198 loc) · 9.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Metadata -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Discover the art of creating responsive websites with by learning the principles of responsive web design, including fluid grids, flexible images, and media queries, to ensure your site looks perfect on all devices. Step-by-step instructions, practical tips, and why responsive design boosts your SEO and user experience."
/>
<meta name="keywords" content="ResponsiveWebDesign, WebDesignAndDevelopment, FrontEndDevelopment, WebDevelopmentTutorials, UserExperienceDesign" />
<meta name="robots" content="index, follow" />
<!-- Open Graph / Social Media -->
<meta property="og:title" content="Building Responsive Websites: A Step-by-Step Guide for Beginners" />
<meta
property="og:description"
content="Discover the art of creating responsive websites with by learning the principles of responsive web design, including fluid grids, flexible images, and media queries, to ensure your site looks perfect on all devices. Step-by-step instructions, practical tips, and why responsive design boosts your SEO and user experience."
/>
<meta
property="og:image"
content="https://images.unsplash.com/photo-1487014679447-9f8336841d58?q=80&w=2805&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
/>
<meta property="og:type" content="article" />
<meta property="og:locale" content="en_US" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Building Responsive Websites: A Step-by-Step Guide for Beginners" />
<meta
name="twitter:description"
content="Discover the art of creating responsive websites with by learning the principles of responsive web design, including fluid grids, flexible images, and media queries, to ensure your site looks perfect on all devices. Step-by-step instructions, practical tips, and why responsive design boosts your SEO and user experience."
/>
<meta
name="twitter:image"
content="https://images.unsplash.com/photo-1487014679447-9f8336841d58?q=80&w=2805&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400;1,500;&display=swap"
rel="stylesheet"
/>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: "class",
theme: {
fontFamily: {
sans: ["Poppins", "sans-serif"],
},
extend: {
colors: {
primary: "#FF1493",
},
},
},
};
</script>
<link rel="stylesheet" href="./css/article.css" />
</head>
<body class="bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100">
<!-- Header -->
<header class="border-b border-gray-100 dark:border-gray-800">
<div class="container mx-auto px-4 py-6">
<nav class="flex flex-col sm:flex-row items-center justify-between">
<a
href="https://codelabsacademy.com/en"
target="_blank"
rel="noreferrer"
aria-label="Home page link"
>
<div class="flex items-center space-x-2 mb-4 sm:mb-0">
<img
src="https://d3vdhmy3teu986.cloudfront.net/strapi/Bullet_9dbbd7144f.svg"
width="30px"
alt="Code Labs Academy icon"
/></div
></a>
<div class="flex items-center space-x-6">
<a
href="index.html"
class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100"
>Blog</a
>
<a
href="https://codelabsacademy.com/en/learning-hub"
target="_blank"
rel="noreferrer"
class="text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100"
>Learning Hub</a
>
<button
id="darkModeToggle"
class="p-2 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-full"
>
<svg
class="w-5 h-5 dark:hidden"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"
/>
</svg>
<svg
class="w-5 h-5 hidden dark:block"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"
/>
</svg>
</button>
</div>
</nav>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-12 min-h-[80vh]">
<article class="max-w-[820px] mx-auto">
<p>Ever wondered how websites look great on phones, tablets, and computers? That's responsive web design!</p><h3>What is Responsive Web Design?</h3><p>It's all about making websites adapt to any screen size. Imagine a website that shrinks and grows like a chameleon!</p><h3>Key Principles</h3><p>Three things make it work: flexible grids (think of it like building with LEGOs that resize), flexible images (pictures that adjust to fit), and media queries (special instructions for different screens).</p><h3>Why is it Important?</h3><p>It's super important because more people use phones than computers. A responsive website makes everyone happy! Plus, search engines love them.</p><h3>Building Your Responsive Website</h3><p>It's easier than you think! First, plan your design. Then, build the basic structure with HTML. Next, add styles with CSS. Don't forget media queries to make it work on all devices. Finally, test it out!</p><h3>Challenges and Solutions</h3><p>Sometimes things don't fit perfectly. Use percentages instead of fixed sizes. If it's slow, optimize your images and code.</p><h3>Level Up Your Skills</h3><p>Want to be a pro? Learn more about front-end and back-end development. Accessibility is also key!</p><h3>Conclusion</h3><p>Responsive web design is a must-have skill. It's all about creating a great experience for everyone. Practice makes perfect!</p><br />Delve into the <a href="https://codelabsacademy.com/en/blog/building-responsive-websites-a-step-by-step-guide-for-beginners?source=github">full article</a><br /><hr /><a href="https://codelabsacademy.com/en/courses/web-development/the_uk/wembley?source=github">Web Development</a> Bootcamp: Building Future-Ready Developers in Wembley<br /><br />#responsivewebdesign #webdevelopment #webdesign
</article>
</main>
<!-- Footer -->
<footer class="border-t border-gray-100 dark:border-gray-800">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-center space-x-4">
<a
href="https://www.linkedin.com/school/codelabsacademy"
target="_blank"
rel="noreferrer"
aria-label="CLA Linkedin link"
class="hover:opacity-80"
>
<img
class="w-6 h-6"
src="./images/linkedin.svg"
alt="Linkedin icon"
/>
</a>
<a
href="https://www.instagram.com/codelabsacademy_/"
target="_blank"
rel="noreferrer"
aria-label="CLA Instagram link"
class="hover:opacity-80"
>
<img
class="w-6 h-6"
src="./images/instagram.svg"
alt="Instagram icon"
/>
</a>
<a
href="https://www.google.com/maps/place/Code+Labs+Academy+Berlin+-+Coding+Bootcamp/@52.5039927,13.405669,17z/data=!3m1!4b1!4m6!3m5!1s0x47bdbddcaf38f957:0xc4282d6f3a56c1bd!8m2!3d52.5039927!4d13.407863!16s%2Fg%2F11rtcdzfy3"
target="_blank"
rel="noreferrer"
aria-label="CLA Maps link"
class="hover:opacity-80"
>
<img class="w-6 h-6" src="./images/maps.svg" alt="Maps icon" />
</a>
</div>
<p class="text-center text-sm text-gray-500 dark:text-gray-400 mt-4">
©
<script>
document.write(new Date().getFullYear());
</script>
Code Labs Academy. All rights reserved.
</p>
</div>
</footer>
<script>
const darkModeToggle = document.getElementById("darkModeToggle");
const html = document.documentElement;
darkModeToggle.addEventListener("click", () => {
html.classList.toggle("dark");
localStorage.setItem("darkMode", html.classList.contains("dark"));
});
// Check for saved dark mode preference
if (
localStorage.getItem("darkMode") === "true" ||
(!("darkMode" in localStorage) &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
html.classList.add("dark");
}
</script>
</body>
</html>