Código 5: Estilos en HTML

<!DOCTYPE html>
<html lang="es">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Estilos</title>
    <style>
        .miencabezado {
            color: red;
        }

        #elencabezado {
            color: black;
        }

        body {
            font-family: sans-serif;
            font-size: 50px;
            font-weight: bold;
        }
    </style>
</head>

<body>
    <h1 class="miencabezado">Estilo del encabezado</h1>
    Choro choro choro...
    <h1 style="color: black; text-align: left">Otro encabezado</h1>
    Más choro mareador...
    <h1 style="color: black; text-align: left">último encabezado</h1> Último choro mareador...
</body>

</html>
Descargar Código

Demostración del Código HTML