HTML Style tag

HTML Style tag

ยท

1 min read

The HTML style tag is used to define the CSS for the document styling. The <style> tag is placed in the <head> section of the HTML document.

Syntax of the HTML style tag

<head>
  <style>
    h1{
      color: tomato;
    }
    p{
      border: 1px solid;
    }
  </style>
</head>
<body>
  <h1>This is heading</h1>
  <p>This is paragraph</p>
</body>


Happy Learning

Thanks For Reading! :)

-SriParthu๐Ÿ’๐Ÿ’ฅ

ย