Why are brackets needed in document.querySelector('[title=label]') ?
Mark 2:32 he says to search an html element by searching for the title attribute 'label.' In this scenario, square brackets [ ] are needed. Why are brackets needed in this example, but not in the others?
Jimmy Crandall23,120 Points
[attr=val] /* Represents elements with an attribute name of `attr` whose value is exactly `val`. */
Hope this helps! Those MDN docs on all the topics that I have linked are full of great info.