$("h1") // element selector
$("#mainHeading") // ID selector
$(".yellow") // class selector
$("*") // selects all HTML elements
$(this) // selects current HTML element
$("button") // selects button element
$("[href]") // selects all link-based elements
Comments