title: Changing color text using button
body: <p>I tried changing text color of my html using javascript . After few tries I realised i cant change the color if i am changing it in css. So basically it means CSS is executed at the end?? and how can i change the color of the text after clicking the button if i am changing it in css as well? Sorry i am new</p>
  
  <pre><code>function changecol()
        { 
            var html=document.body;
  
            html.style.backgroundColor='black';
            html.style.color='white';
  
        }
  </code></pre>
  
  <p>Expected all the lines in my html to turn white but only those where i have not applied css became white</p>