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>
This post was written by: Bharathi
Bharthi is a professional blogger, web designer and front end web developer. Follow him on Twitter
Subscribe to:
Post Comments (Atom)
0 Responses to “How to Using styles in HTML”
Post a Comment