<!DOCTYPE html>src="//libs.baidu.com/jquery/1.10.2/jquery.min.js"$(document).ready(function(){$("h1").add("p").add("span").css("background-color","yellow");});WelcomeA p element.Another p element.A span element.A span element.This example adds the same css style for both p and span elements, as the existing h1 element.