Pesquisar neste blog

14/08/2020

Herança em HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Herança</title>
    <link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
    <style>
        body{
            font-family'Oswald'sans-serif;
            font-size20px;/* tamanho da fonte*/
            bordersolid 3px red;
        }

        div{
            borderinherit;
            paddinginherit;
        }
    </style>
</head>
<body>
    <h1 style="font-size: 3em">Herança</h1>
    <div>Estou herdando
        <span><p>
            teste
        </p></span>
    </div>
</body>
</html>



Nenhum comentário: