Mettre en couleur l’arrière-plan

posted in: html | 0


 
 

L’arrière-plan est rouge

L’arrière-plan est orange

L’arrière-plan est jaune

L’arrière-plan est bleu

L’arrière-plan est cyan

L’arrière-plan utilise les codes rgb (255,0,0)

L’arrière-plan utilise les codes rgb (0,255,0)

L’arrière-plan utilise les codes rgb (0,0,255)

L’arrière-plan utilise les codes rgb (255,255,0)

L’arrière-plan utilise les codes rgb (255,0,255)

L’arrière-plan utilise les codes rgb (0,255,255)

L’arrière-plan utilise les codes rgb (0,0,0)

L’arrière-plan utilise les codes rgb (128,128,128)

L’arrière-plan utilise les codes rgb (255,255,255)

L’arrière-plan utilise le code hex #FF0000

L’arrière-plan utilise le code hex #00FF00

L’arrière-plan utilise le code hex #0000FF

L’arrière-plan utilise le code hex #FFFF00

L’arrière-plan utilise le code hex #FF00FF

L’arrière-plan utilise le code hex #00FFFF

L’arrière-plan utilise le code hex #000000

L’arrière-plan utilise le code hex #808080

L’arrière-plan utilise le code hex #FFFFFF

 
 

Le code expliqué :

<!DOCTYPE html>
<html>
<body>
<h2 style= »background-color:red »>
L’arrière-plan est rouge
</h2>
<h2 style= »background-color:orange »>
L’arrière-plan est orange
</h2>
<h2 style= »background-color:yellow »>
L’arrière-plan est jaune
</h2>
<h2 style= »background-color:blue;color:white »>
L’arrière-plan est bleu
</h2>
<h2 style= »background-color:cyan »>
L’arrière-plan est cyan
</h2>
<h2 style= »background-color:rgb(255,0,0) »>
L’arrière-plan utilise les codes rgb (255,0,0)
</h2>
<h2 style= »background-color:rgb(0,255,0) »>
L’arrière-plan utilise les codes rgb (0,255,0)
</h2>
<h2 style= »background-color:rgb(0,0,255) »>
L’arrière-plan utilise les codes rgb (0,0,255)
</h2>
<h2 style= »background-color:rgb(255,255,0) »>
L’arrière-plan utilise les codes rgb (255,255,0)
</h2>
<h2 style= »background-color:rgb(255,0,255) »>
L’arrière-plan utilise les codes rgb (255,0,255)
</h2>
<h2 style= »background-color:rgb(0,255,255) »>
L’arrière-plan utilise les codes rgb (0,255,255)
</h2>
<h2 style= »background-color:rgb(0,0,0);color:white »>
L’arrière-plan utilise les codes rgb (0,0,0)
</h2>
<h2 style= »background-color:rgb(128,128,128);color:white »>
L’arrière-plan utilise les codes rgb (128,128,128)
</h2>
<h2 style= »background-color:rgb(255,255,255); »>
L’arrière-plan utilise les codes rgb (255,255,255)
</h2>
<h2 style= »background-color:#FF0000″>
L’arrière-plan utilise le code hex #FF0000
</h2>
<h2 style= »background-color:#00FF00″>
L’arrière-plan utilise le code hex #00FF00
</h2>
<h2 style= »background-color:#0000FF »>
L’arrière-plan utilise le code hex #0000FF
</h2>
<h2 style= »background-color:#FFFF00″>
L’arrière-plan utilise le code hex #FFFF00
</h2>
<h2 style= »background-color:#FF00FF »>
L’arrière-plan utilise le code hex #FF00FF
</h2>
<h2 style= »background-color:#00FFFF »>
L’arrière-plan utilise le code hex #00FFFF
</h2>
<h2 style= »background-color:#000000;color:white »>
L’arrière-plan utilise le code hex #000000
</h2>
<h2 style= »background-color:#808080;color:white »>
L’arrière-plan utilise le code hex #808080
</h2>
<h2 style= »background-color:#FFFFFF; »>
L’arrière-plan utilise le code hex #FFFFFF
</h2>
</body>
</html>

logowebmaster1