HTML style tag

  • We use CSS to visualize or shape the codes we write on HTML.
  • We can create an external CSS file or style the code within the html file to write CSS.
  • <style></style> is the way it is used within head tag.

HTML style tag

<html> 
<head>
  <style> 
    .blue-text{
      color: green;
     }
  </style>
</head>
 
<body>  
    <h4 class="green-text">Green Text</h4> 
</body>

</html>

Green Text

293 Views
48440cookie-checkHTML style tag

Leave a Reply

Your email address will not be published. Required fields are marked *