Horje

How to create HTML <style> Tag

Use of the <style> element to apply a simple style sheet to an HTML document.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
<style>
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>

Output should be:

How to create HTML <style> Tag




Type :
html
Category :
Web Tutorial
Sub Category :
HTML Tag
Uploaded by :
Admin