Welcome to the Treehouse Community
Looking to learn something new?
angel angel6,620 Points
Why use <section> and <main> instead of <div>
So I being try to understand what is the differences of the following elements <div>, <Section> and <Main> ,and when to used what. For example : <body> <header> <div id="logo">hello</div> <nav>...</nav> </header> <main role="main"> <h1>Guitars</h1> <p>The greatest guitars ever built.</p>
<article> <h2>Ok today</h2> <p>...</p> </article> <article> <h2>Cool stuff</h2> <p>...</p> </article>
Also I don't understand how the elemet of <Div> works. Is any good tutorial out there on how works and and how I use it. Thank you so much guys for your help. I just a new programmer lost lol. You guys know that is the fun part of all lol. Thanks again!