w3resource
HTML exercises

HTML CSS Exercise: Type selector

Solution:

HTML Code :

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>CSS Type selector example</title>
<style type="text/css">
h1{
color:#4b6c9c;  
}
</style>
</head>
<body>
<h1>This is heading one</h1>
</body>
</html>

Live Demo :

See the Pen type-selector-answer by w3resource (@w3resource) on CodePen.


Supported browser

Firefox logo Chrome logo Opera logo Safari logo Internet Explorer logo
YesYesYesYesYes

What is the difficulty level of this exercise?