How to work with style attribute in HTML?

HTMLWeb DevelopmentFront End Technology

Use the style attribute in HTML to set the CSS style. It is used to set the inline CSS. You can try to run the following code to implement style attribute in HTML −

Example

<!DOCTYPE html>
<html>
   <body>
      <h2>Tutorialspoint</h2>
      <p>We provide tutorials.</p>
      <p style = "color:green">We provide learning videos.</p>
   </body>
</html>
raja
Updated on 03-Mar-2020 05:46:15

Advertisements