liuyi9509 / codecademy-build-websites-from-scratch-

0 stars 0 forks source link

Sections #8

Closed liuyi9509 closed 6 years ago

liuyi9509 commented 6 years ago

From @martoio on July 24, 2018 12:48

Good job on separating the HTML into sections! One thing you might want to consider is changing the <div> into a <section> to improve the semantics of your code. If you aren't familiar with semantic HTML: http://www.hongkiat.com/blog/html-5-semantics/ Example:

<!-- First section -->
<section> <!-- or <div>, but <section> is more semantic -->
 <h2 class="brushes">Brushes</h2>
 <img src="#" alt="#" />
 <h3>Text</h3>
 <p>
  Lorem <span class="price">ipsum</span>
 </p>
</section>

https://github.com/liuyi9509/Codecademy-SQL-intensive/blob/3fd7c7abc0d022b1c41e79cf61432a920a3f64b8/index.html#L12-L17

Copied from original issue: liuyi9509/Codecademy-SQL-intensive#4