•  
     

h3, p e span - HTML & CSS

index.html

Código: Selecionar todos

<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title>I Know Kung Fu (er, CSS)</title>
</head>
<body>
<div>
<h3>What's CSS for?</h3>
<p>CSS is for styling HTML pages!</p>
<h3>Why use it?</h3>
<p>It makes webpages look <span>really rad</span>.</p>
<h3>What do I think of it?</h3>
<p>It's awesome!</p>
</div>
</body>
</html>


stylesheet.css

Código: Selecionar todos

h3{color:red;}
p{font-family:Courier;}
span{background-color:yellow;}

Demo: http://jsfiddle.net/ZsNDL/