JSFiddle - React, Tailwind, and code Playground

by Dave Mednick

HTML

<p>Given a jQuery object that represents a set of DOM elements, the .contents() method allows us to search throughthe immediate children of these elements in the DOM tree and construct a new jQuery object from the matching elements. The .contents() and .children() methods are similar, except that the former includes text nodes as well as HTML elements in the resulting jQuery object</p>

CSS

p:first-letter{color:green;font-size:1.3em;font-weight:bold;}

JavaScript

var $fl = $('p:first-child');
var $sl = $('p:nth-child(2)');
if ($fl.css('font-size') != $sl.css('font-size')) alert(true);