style attribute in html
snippet in html

how to write multiple style in html

user4292

<h1 style="color:blue;text-align:center">This is a header</h1>
<p style="color:green">This is a paragraph.</p>

html style tag

user9550

<html>
<head>
<style>
  h1 {color:red;}
  p {color:blue;}
</style>
</head>
<body>

<h1>A heading</h1>
<p>A paragraph.</p>

</body>

html style attribute

user156

<!-- style inside of an html element -->
<p style="color: rgb(255, 0, 255);">I am a unicorn</p>
<!-- style as an html element -->
<style>
  /* Put in CSS */
</style>

html style tag

user2945

<style>
  /* Put in CSS */
</style>

html style tag

user6042

<html>
  <body>
    <!-- BODY HTML -->
  </body>
  <head>
    <!-- HEAD HTML -->
  </head>
  <style>
    /* CSS */
  </style>

style attribute in html

user8083

<p style="color: red; /* CSS */">Example</p>