When to use <section> or <div>

Wondering if anyone can help me understand the difference between these two and when to use one over the other? Is div the child to the section parent or are they interchangeable? I’m very new to html and want to make sure im understanding and correctly applying as I go. TIA

Hi Sixpence, from one forum newbie to another: Welcome!

So, a div is a generic ‘catch-all’ tag. It’s a basic divider. A section is pretty much the same thing but is semantically more precise. It’s used for different sections of your page (ie header, footer). Both are block elements so they act the same way.

Thank you for answering. Makes a little more sense now!