English | >> Português << | По-русскиadultinternetusers > Tutorials > Surfing tutorial
>> Exemplo 2 << | Anterior | Próximo | Conteúdos

Descrição


Neste exemplo, a mesma folha de estilos é usada para formatar diferentes documentos HTML.

Case 1 | >> Case 2 <<
Documento HTMLfolha de estilos CSS
<html>
<head>
<link rel='stylesheet' type='text/css' href='css1.css'>
<title>A Surfing example</title>
</head>
<body>

<h3>Heading 3</h3>
<p>Text 1</p>
<h1>Heading 1</h1>
<p>Text 2</p>
<h3>Heading 3</h3>
</body>
</html>
h1 {color:blue}
h2 {color:navy}
h3 {color:olive}
h4 {color:purple}
h5 {color:maroon}
p  {font-weight:bold; 
    color:red;}

Resultado do Navegador