$(document).ready(function() {
$("p").css("background-color", "LightGrey");
$("span").css({"background-color": "Green","color":"Yellow"});
$("div").html($('span' ).css("font-size"));;
});
<p> jQuery By Example is a great blog to learn about jQuery.</p> <br/> <span> jQuery By Example is a great blog to learn about jQuery. </span> <br/><br/> <div> </div>