Skip to content

Commit aa07cf6

Browse files
committed
html passes w3 validator
1 parent 92f9062 commit aa07cf6

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

Wireframe/index.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
<header class="header">
2222
<div class="container header__content">
23-
2423
<div class="header__branding">
2524
<h1 class="header__title">The Blog</h1>
2625
<p class="header__tagline">A blog on learning programming</p>
@@ -32,7 +31,7 @@ <h1 class="header__title">The Blog</h1>
3231
<div class="container">
3332
<main>
3433
<article class="article-feature">
35-
<img src="./images/readme.png" alt="illustration of a readme.md file">
34+
<img src="./images/readme.png" alt="illustration of a README.md file" loading="lazy" decoding="async">
3635
<div class="article-feature-text">
3736
<h2>What is the purpose of a README file</h2>
3837
<p>
@@ -54,7 +53,8 @@ <h2>What is the purpose of a README file</h2>
5453

5554
<div class="article-secondary-flex">
5655
<article class="article-sec">
57-
<img src="./images/wireframe-hero.png" alt="illustration of a man showing a wireframe">
56+
<img src="./images/wireframe-hero.png" alt="illustration of a man showing a wireframe" loading="lazy"
57+
decoding="async">
5858
<h2>What is the purpose of a wireframe</h2>
5959
<p>
6060
A wireframe is a simple visual representation of a website or application's layout. It acts as a
@@ -68,7 +68,8 @@ <h2>What is the purpose of a wireframe</h2>
6868
</article>
6969

7070
<article class="article-sec">
71-
<img src="./images/git.webp" alt="illustration of a git tree branching out">
71+
<img src="./images/git.webp" alt="illustration of a git tree branching out" loading="lazy"
72+
decoding="async">
7273
<h2>What is a branch in Git?</h2>
7374
<p>Git documentation explains that branches allow developers to diverge from the main line of
7475
development
@@ -86,7 +87,7 @@ <h2>What is a branch in Git?</h2>
8687
</main>
8788
</div>
8889

89-
<footer class="site-footer index-footer">
90+
<footer class="site-footer">
9091
<div class="container">
9192
<p>&copy; 2026 The Blog. All rights reserved.</p>
9293
</div>

Wireframe/style.css

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@ img {
1515

1616
/* ====== Layout ====== */
1717
.container {
18-
width: 80%;
18+
width: 70%;
1919
max-width: 1200px;
2020
margin: 0 auto;
2121
}
2222

2323
/* ====== Header ====== */
24-
.site-header {
24+
.header__content {
2525
text-align: center;
2626
padding: 20px;
2727
}
2828

29-
.site-title {
29+
.header__title {
3030
font-weight: 900;
3131
font-style: italic;
3232
color: #c1121f;
3333
margin-bottom: 0;
3434
}
3535

36-
.site-tagline {
36+
.header__tagline {
3737
color: #780000;
3838
margin-top: 0;
3939
font-size: 18px;
@@ -42,7 +42,7 @@ img {
4242

4343
/* ====== Articles ====== */
4444
article {
45-
border: 1px solid #fb8500;
45+
border: 1px solid #ced4da;
4646
}
4747

4848
.article-feature-text {
@@ -62,18 +62,18 @@ article {
6262
}
6363

6464
/* ====== Buttons / Links ====== */
65-
.article-read-more {
65+
.article__link {
6666
text-decoration: none;
67-
border: 1px solid #03045e;
67+
border: 1px solid #ced4da;
6868
padding: 0.7em 1.2em;
6969
color: #fff;
7070
background: #e76f51;
7171
border-radius: 2px;
7272
display: inline-block;
7373
}
7474

75-
.article-read-more:hover,
76-
.article-read-more:focus {
75+
.article__link:hover,
76+
.article__link:focus {
7777
background: #ffc300;
7878
color: black;
7979
}
@@ -85,12 +85,13 @@ article {
8585
}
8686

8787
/* ====== Responsive ====== */
88-
@media (max-width: 768px) {
88+
@media (max-width: 750px) {
8989
.article-secondary-flex {
9090
flex-direction: column;
9191
}
9292

93-
.article-sec {
94-
width: 100%;
93+
.article-sec{
94+
width: 90%;
9595
}
96+
9697
}

0 commit comments

Comments
 (0)