Skip to content

Commit a49df54

Browse files
committed
접근성 향상 : 제목요소 내림차순 정렬
1 parent d2e0f06 commit a49df54

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ <h1>Best Sellers</h1>
8686
<img src="images/vr1.webp" alt="product: Penom Case">
8787
</div>
8888
<div class="product-info">
89-
<h5 class="categories">Headsets, Apple</h5>
90-
<h4 class="title">Apple Headset</h4>
91-
<h3 class="price">
89+
<h2 class="categories">Headsets, Apple</h2>
90+
<h3 class="title">Apple Headset</h3>
91+
<h4 class="price">
9292
<span>US$ 450.00</span>
93-
</h3>
93+
</h4>
9494
<button>Add to bag</button>
9595
</div>
9696
</div>
@@ -100,11 +100,11 @@ <h3 class="price">
100100
<img src="images/vr2.webp" alt="product: Noise Cancelling Headphone">
101101
</div>
102102
<div class="product-info">
103-
<h5 class="categories">Headsets, PS</h5>
104-
<h4 class="title">Playstation Headset</h4>
105-
<h3 class="price">
103+
<h2 class="categories">Headsets, PS</h2>
104+
<h3 class="title">Playstation Headset</h3>
105+
<h4 class="price">
106106
<span>US$ 399.99</span>
107-
</h3>
107+
</h4>
108108
<button>Add to bag</button>
109109
</div>
110110
</div>
@@ -114,12 +114,12 @@ <h3 class="price">
114114
<img src="images/vr3.webp" alt="product: Canon Digital SLR EOS Rebel T6">
115115
</div>
116116
<div class="product-info">
117-
<h5 class="categories">Headsets, Oculus</h5>
118-
<h4 class="title">Oculus Headset</h4>
119-
<h3 class="price">
117+
<h2 class="categories">Headsets, Oculus</h2>
118+
<h3 class="title">Oculus Headset</h3>
119+
<4 class="price">
120120
<span class="discounted-price">US$ 349.99</span>
121121
<span class="original-price">US$ 419.99</span>
122-
</h3>
122+
</4>
123123
<button>Add to bag</button>
124124
</div>
125125
</div>

js/products.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ function displayProducts(products) {
2929
const infoDiv = document.createElement('div');
3030
infoDiv.classList.add('product-info');
3131

32-
const category = document.createElement('h5');
32+
const category = document.createElement('h2');
3333
category.classList.add('categories');
3434
category.textContent = product.category;
3535

36-
const title = document.createElement('h4');
36+
const title = document.createElement('h3');
3737
title.classList.add('title');
3838
title.textContent = product.title;
3939

40-
const price = document.createElement('h3');
40+
const price = document.createElement('h4');
4141
price.classList.add('price');
4242
const priceSpan = document.createElement('span');
4343
priceSpan.textContent = `US$ ${product.price}`;

0 commit comments

Comments
 (0)