JSFiddle - React, Tailwind, and code Playground

by Dineshkani

HTML

<div id="firstdiv" style="font-size: 30px">
         Hello Jquery
</div>

CSS

.sample{
    color: red;
    font-size: 30px;    
}

JavaScript

//In Jquery

alert($("#firstdiv").css("font-size")); //It can get from all css styles

//In Javascript

alert(document.getElementById("firstdiv").style.fontSize); //It can only get the style from inline styles.