The correct syntax to set the background color of all h1 elements to yellow in jQuery -
1.$("h1").style("background-color","yellow");
2.$("h1").html("background-color","yellow");
3.$("h1").css("background-color","yellow");
4.$("h1").layout("background-color","yellow");