How to define style information for a document in HTML

Topics

Introduction

How to define style information for a document in HTML.

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>www.techstudy.org</title>
  <style>
h2 {color:Red;}
p {color:Green;}
</style>
</head>
<body>
<h2>TechStudy</h1>
<p>TechStudy - The complete debugging solution</p>
</body>
</html>
</html>

Result

How to define style information for a document in HTML
How to define style information for a document in HTML

Leave a Comment