•  
     

p id - HTML & CSS

index.html

Código: Selecionar todos

<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
		<title></title>
	</head>
	<body>
		<div>
			<p id="teste">I'm the first child!</p>
			<p id="teste2">We're not.</p>
			<p id="teste3">We're not.</p>
			<p id="teste4">We're not.</p>
			<p id="teste5">We're not.</p>
			<p>We're not.</p>
			<p>We're not.</p>			
		</div>
	</body>
</html>


stylesheet.css

Código: Selecionar todos

#teste{font-family:cursive;}
#teste2{font-family:Tahoma;}
#teste3{color:#CC0000;}
#teste4{background-color:#00FF00;}
#teste5{font-size:22px;}

Demo: http://jsfiddle.net/FgZ99/