JSFiddle - React, Tailwind, and code Playground

by Biman Ghosh

HTML

<p class="center">Learning id and class</p>
<p class="justify">This paragraph is using the class justify. Can you notice the difference? We hope that now the concept of class and id are pretty clear to you.</p>

<div id="special_para">This TEXT is using ID. It can be used by other HTML elements also.</div>

CSS

#special_para{
    color:purple;
    font-size:12px;
}
p.center
{
color:red;
text-align:center;
} 
p.justify {color:blue;text-align:justify;}

JavaScript

/* CSS Id and Class Tutorial
 Created by : All Job India
 Website : www.alljobindia.in

To view CSS : Click the CSS tab. The HTML used is in the HTML tab and the Result tab will show the result. 
*/