12-Colores en html







Nombre de colores

En HTML, un color se puede especificar usando un nombre de color. Existen 140 nombres de color estándar que HTML soporta, tales como Naranja, Verde, Amarillo, Rojo, etc.

Estos nombres son fáciles de recordar y usar, proporcionando una forma rápida de aplicar colores sin necesidad de codificar valores hexadecimales o RGB.

Ejemplo

Tomato

Orange

DodgerBlue

MediumSeaGreen

Gray

SlateBlue

Violet

LightGray


Código del ejemplo

        
        <h1 style="background-color:Tomato;">Tomato</h1>
<h1 style="background-color:Orange;">Orange</h1>
<h1 style="background-color:DodgerBlue;">DodgerBlue</h1>
<h1 style="background-color:MediumSeaGreen;">MediumSeaGreen</h1>
<h1 style="background-color:Gray;">Gray</h1>
<h1 style="background-color:SlateBlue;">SlateBlue</h1>
<h1 style="background-color:Violet;">Violet</h1>
<h1 style="background-color:LightGray;">LightGray</h1>     
            



...

Publicar un comentario

0 Comentarios