Updated:01/17/2024 by Computer Hope
The <style> tag is used to define style or design (CSS) for a html web page .
<!--
Example contain a Style tag and property in html.
It is just create a simple web page in web browser
Note : open note paid and Save this code on notepad with extension of .html
then right click and select option of Open with in Window user ,run with any browser and display output .
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "https://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
h2 {color:yello;}
p {color:green;}
</style>
<style>
h2 {color:green;}
p {color:pink;}
</style>
</head>
<body>
<h2>This is a heading</h2>
<p>This is a paragraph.</p>
</body>
</html>