Derniers tutoriels de développement web
 

Colors HWB


HWB est une norme suggérée pour CSS4.


HWB Calculator


rgb (255, 0, 0)
# ff0000
HSL (0, 100%, 50%)


H:
W:
B:

Aide HTML

HWB est pas pris en charge HTML (encore), mais il est suggéré comme une nouvelle norme en CSS4.

En attendant CSS4, vous pouvez inclure la bibliothèque w3ii 'Color, et utiliser HWB comme un attribut HTML comme ceci:

Exemple

<div data-w3-color="hwb(60, 50%, 0)">

<p>London is the capital city of England.
It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.</p>

</div>

<script src="http://www.w3ii.com/lib/w3color.js"></script>
Try It Yourself »

w3ii Color Library

La bibliothèque JavaScript utilisé dans l'exemple ci-dessus peut être téléchargé à partir

http://www.w3ii.com/lib/w3color.js