HTML STYLE Tag || Style Tag in HTML
×

HTML STYLE <style> Tag

1828

HTML Style <style> tag is define to change style information on existing HTML elements. You can add style on HTML elements like tag, class, id, etc. There is a default style for every HTML element like background color is white, text color is black, font-family, font-size, etc.

Each HTML document can contain multiple <style> tags.

Syntax:

The <style> tag is written as <style></style> with the style sheet (CSS) inserted between the start and end tags.

Program:

<!DOCTYPE html>
<html>
<head>
<title>HTML Style tag</title>
 <style>
 p{
  color: green;
  font-size: 26px;
  font-weight: 500;
  text-transform:capitalize;
  }
 </style>
</head>  
<body>
<h1>Example of Style Tag</h1>
<p>Coding Tag is the website covering technical technologies.</p>
</html>

Output:




Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments