Tuesday 17 July 2012

How to Using styles in HTML


<!DOCTYPE html>
<html>
<head>
<style type="text/css">
h1 {color:red;}
h2 {color:blue;}
p {color:green;}
</style>
</head>

<body>

<h1>All the elements here will be red</h1>
<h2>All header 2 elements her will be blue</h2>
<p>All text in paragraphs here will be green.</p>

</body>
</html>

0 Responses to “How to Using styles in HTML”

Post a Comment