JSFiddle - React, Tailwind, and code Playground

by kodjoe mambi

HTML

<div id="refals_wr">


<span>NAME OF SORTING ALGORITHM:</span><br />
<span id="algName">Bubble Sort</span>




<span>TOTAL SWAPS:</span><br />
<span id="algTotalSwaps">50</span>


<span>SWAP COUNT:</span><br />
<span id="algSwapCount">8</span>


    
</div>

CSS

#refals_wr span:nth-of-type(odd){
	color:green;}
	
#refals_wr span:nth-of-type(even){
	color:orange;}