JSFiddle - React, Tailwind, and code Playground by jquerybyexample May 03, 2012 HTML <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> CSS body { font-family : Arial; font-size : 14pt; padding : 10px; } JavaScript $(document).ready(function() { $("p").css("background-color", "LightGrey"); $("span").css({"background-color": "Green","color":"Yellow"}); $("div").html($('span' ).css("font-size"));; });