Skip to content

Commit 3dfce02

Browse files
committed
add aria labels to section tags
1 parent 87c548a commit 3dfce02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

weatherApp/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@
4646
<h2>Weather</h2>
4747

4848
<div class="weatherBox">
49-
<input type="text" id="inputBox" placeholder="Enter city name">
50-
<button id="searchBtn"><i class='bx bx-search' ></i></button>
49+
<input type="text" id="inputBox" placeholder="Enter city name" aria-label="Enter city name">
50+
<button id="searchBtn" aria-label="Search for Weather"><i class='bx bx-search' ></i></button>
5151
</div>
5252

5353
<!--Create weather result container-->
54-
<div class="weatherResult">
54+
<div class="weatherResult" role="region">
5555
<img src="images/error.png" alt="Weather Status" id="weatherIcon">
5656
<h3 id="cityName" aria-live="polite">Loading...</h3>
5757
<p id="temp"></p>
@@ -62,9 +62,9 @@ <h3 id="cityName" aria-live="polite">Loading...</h3>
6262
</section>
6363

6464
<!--Create about section-->
65-
<section class="aboutContainer" id="about">
65+
<section class="aboutContainer" id="about" aria-labelledby="aboutTitle">
6666
<div class="aboutContent">
67-
<h2>Weather App</h2>
67+
<h2 id="aboutTitle">Weather App</h2>
6868

6969
<img src="images/cartoonSunNoBg.png" alt="Weather App">
7070

0 commit comments

Comments
 (0)