¿Cómo hacer una imagen en blanco y negro usando html?
Usar estilo CSS
Efecto blanco y negro
Código:
1. Insertar estilo internamente
Entre 〈head〉 y 〈/head 〉 Insertar:
〈tipo de estilo = texto/css〉
.baw{filtro:Gris}
〈?/estilo〉
Luego agregue class="baw" en el código del atributo de imagen.
Nota: En el código insertado entre 〈head〉 y 〈/head〉, hay un "." (excluyendo las comillas) delante de baw. Asegúrate de no omitirlo.
2. Insertar directamente
Agregue el código de atributo de la imagen:
style="filter: Gray"