Skip to content

Commit e07f9ae

Browse files
committed
Fix validator warning by adding section heading
1 parent e11f7b6 commit e07f9ae

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

Wireframe/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ <h1>Wireframe Exercise</h1>
1616

1717
<main>
1818
<section class="articles">
19+
<h2>Articles</h2>
20+
1921
<article>
2022
<img src="placeholder.svg" alt="" />
21-
<h2>What is a README file?</h2>
23+
<h3>What is a README file?</h3>
2224
<p>
2325
A README file explains what a project is, how it works, and how to use it.
2426
It is usually the first thing CYF students read in a repository.
@@ -30,7 +32,7 @@ <h2>What is a README file?</h2>
3032

3133
<article>
3234
<img src="placeholder.svg" alt="" />
33-
<h2>What is a wireframe?</h2>
35+
<h3>What is a wireframe?</h3>
3436
<p>
3537
A wireframe is a simple visual layout that shows the structure of a webpage
3638
before any design or styling is added.
@@ -40,7 +42,7 @@ <h2>What is a wireframe?</h2>
4042

4143
<article>
4244
<img src="placeholder.svg" alt="" />
43-
<h2>What is a Git branch?</h2>
45+
<h3>What is a Git branch?</h3>
4446
<p>
4547
A Git branch lets you work on new changes safely without changing the main
4648
project. You can make updates, and only add them to the main code when they

Wireframe/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ header {
2222
}
2323

2424
/* First article spans full width */
25-
.articles article:first-child {
25+
.articles article:first-of-type {
2626
grid-column: 1 / -1;
2727
}
2828

@@ -36,7 +36,7 @@ article img {
3636
height: auto;
3737
}
3838

39-
/* Border around links */
39+
/* Border around Read more links */
4040
article a {
4141
display: inline-block;
4242
border: 1px solid #ccc;
@@ -52,4 +52,4 @@ footer {
5252
border-top: 1px solid #ccc;
5353
background-color: #fff;
5454
padding: 10px;
55-
}
55+
}

0 commit comments

Comments
 (0)