Dasmotos Arts and Crafts

Hi, was curious if any of you may know if I can use the following code in the dasmotos project. I noticed that in the solution it was reccomended to use the div element, however, isnt the section element more semantic?

<h1>Dasmoto's Arts & Crafts</h1>
    
    <section>
        <h2 class="brushes">Brushes</h2>
        <img src="https://content.codecademy.com/courses/freelance-1/unit-2/hacksaw.jpeg" alt="paint brushes">
        <h3>Hacksaw Brushes</h3>
            <p>Made of the highest quality oak, Hacksaw brushes are known for their weight and ability to hold paint in large amounts. Available in different sizes. <span class="price">Starting at $3.00 / brush.</span></p>
    </section>

Hey!

I believe you’re totally correct - the <section> tag would be more semantic in this case. I would assume that Codecademy uses <div> here because of the flow of the course (in most cases, i believe that semantic HTML is taught later on). But good catch!

Hi,
ok good so im not crazy :slight_smile: Thanks so much!

1 Like