JSFiddle - React, Tailwind, and code Playground

by kien16

HTML

<script>
    function changeCSS () {
        var style = 'font-size: 15px;'
		+	'font-family  : Arial, Verdana;'
		+	'border: 1px solid blue;'
        +   'background-color: yellow;'; 
        alert(style);
    }
   
</script>
<div>
    <table style="margin:5px;">
        <tr>
            <td class="cls">
               abcd
            </td>
        </tr>
    </table>
</div>

  <a href="#" onclick="changeCSS();">Setstyle</a>

CSS

.cls{
		    
}