Welcome to the Treehouse Community
Looking to learn something new?
Li Mbo5,096 Points
what is the difference between div[id="name1"] and div #name1 ?
Are they the same?
Kevin Korte28,109 Points
No, they are not.
div[id="name1"] would select this html
div #name1 would select this html
<div> <div id="name1"></div> <!-- this element with id of name1 would be anything; an anchor, h or p tag, form input, or any other element that supports id --> </div>
As you can see, two very different HTML.