Tous les filtres HTML avec exemples

Information (14/02/2010)

J'avais réalisé cette page le 27/02/2003, dans la fougue de la découverte des possibilités du Web. Je laisse donc ces pages à titre d'information, mais avec le recul je ne suis pas du tout convaincu, car les différents filtres présentés ici ne sont valables que pour le navigateur Internet Explorer.

Exemple de syntaxe

  1. <img src="graphique.gif" style="FILTER: GLOW(color=blue, strength=4)">

Après les deux points suit l'appel au filtre par son nom et ses paramètres séparés par des virgules. Le tout entre parenthèses.
Si un filtre ne demande aucun paramètre, les parenthèses sont tout de même présentes (comme pour un appel de fonction).

Nous pouvons combiner plusieurs filtres pour un même élément, comme le montre l'exemple suivant.

  1. <img src="graphique.gif" style="filter:Blur(strength=50) FlipH();">

Table des matières Haut

Balises HTML sur lesquelles nous pouvons appliquer les filtres

BaliseApplication
BaliseApplication
bodyla totalité de la page affichée
buttonla surface pouvant être cliquée
divle passage en relation avec les mentions de feuilles de style width: et/ou height: et/ou position:
imgle graphique référencé
inputle champ de saisie
marqueele texte déroulant
spanle passage en relation avec les mentions de feuilles de style width: et/ou height: et/ou position:
tablele tableau
tdla cellule de données d'un tableau
textareale champ de saisie à plusieurs lignes
tfootle pied d'un tableau
thla rangée d'entête d'un tableau
theadl'entête d'un tableau
trla rangée d'un tableau

Exemples d'utilisation de filtres

Les exemples changent à chaque chargement de la page. Si vous désirez d'autres exemples, vous pouvez recharger la page.

Exemple avec Alpha()

  1. <!DOCTYPE html PUBLIC
  2. "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <head>
  5. <title>filter:0()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta name="Author" lang="fr" content="Seymour Cray">
  9. <meta name="Description" content="Utilisation des filtres, Demo">
  10. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  11. <meta name="Reply-to" content="engels.friedrich@infobrol.pro">
  12. <meta name="Publisher" content="Engels">
  13. <meta http-equiv="content-language" content="fr">
  14. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  15. </head>
  16. <body>
  17. <img
  18. style="filter:Alpha(opacity=48, finishopacity=0, style=2);"
  19. src="0Filter.jpg"
  20. align="center"
  21. width="78"
  22. height="90"
  23. alt="Alpha
  24. appliqu&eacute; &agrave; une image">
  25. <span style="width: 100%; filter:Alpha(opacity=48, finishopacity=0, style=2);">
  26. Alpha
  27. appliqu&eacute; &agrave; du texte
  28. </span>
  29. </body>
  30. </html>

Table des matières Haut

Exemple avec Blur()

  1. <!DOCTYPE html PUBLIC
  2. "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <head>
  5. <title>filter:1()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  9. <meta name="Reply-to" content="truong.jean-michel@gmail.com">
  10. <meta name="Copyright" content="Jean-Michel Truong">
  11. <meta http-equiv="content-language" content="fr">
  12. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  13. <body bgcolor="#FFFFFF" text="#000000">
  14. <h1>Exemple de filtre Blur</h1>
  15. width:100%; padding:7px; font-size:12pt; color:red;
  16. filter:1(strength=11)">
  17. Application de Blur(),
  18. texte avec Blur
  19. The quick brown fox jumped over the lazy dog.
  20. The quick brown fox jumped over the lazy dog.
  21. The quick brown fox jumped over the lazy dog.
  22. The quick brown fox jumped over the lazy dog.
  23. </div>
  24. </body>
  25. </html>

Table des matières Haut

Exemple avec Chroma()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <head>
  4. <title>filter:2()</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta http-equiv="pragma" content="no-cache">
  7. <meta name="Author" lang="fr" content="Scott McNealy">
  8. <meta name="Description" content="Utilisation des filtres, Demo">
  9. <meta name="Reply-to" content="antoinehenri@becquerel.info">
  10. <meta name="Publisher" content="Becquerel">
  11. </head>
  12. <body>
  13. <img
  14. style="filter:Chroma(color=#DDBB99);"
  15. src="2Filter.jpg"
  16. align="center"
  17. width="108"
  18. height="95"
  19. alt="Chroma
  20. appliqu&eacute; &agrave; une image">
  21. <span style="width: 100%; filter:Chroma(color=#DDBB99);">
  22. Chroma
  23. appliqu&eacute; &agrave; du texte
  24. </span>
  25. </body>
  26. </html>

Table des matières Haut

Exemple avec DropShadow()

  1. <!DOCTYPE html PUBLIC
  2. "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <head>
  5. <title>filter:3()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta name="Author" lang="fr" content="Phil Zimmerman">
  9. <meta name="Description" content="Utilisation des filtres, Demo">
  10. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  11. <meta name="Reply-to" content="isaac@newton.info">
  12. <meta name="Publisher" content="Newton">
  13. <meta name="Copyright" content="Isaac Newton">
  14. <meta http-equiv="content-language" content="fr">
  15. </head>
  16. <body>
  17. <h1>Exemple de filtre DropShadow</h1>
  18. width:100%; padding:9px; font-size:34pt; color:red;
  19. filter:3(color=#8470ff)">
  20. Application de DropShadow(),
  21. texte avec DropShadow
  22. The quick brown fox jumped over the lazy dog.
  23. The quick brown fox jumped over the lazy dog.
  24. The quick brown fox jumped over the lazy dog.
  25. The quick brown fox jumped over the lazy dog.
  26. </div>
  27. </body>
  28. </html>

Table des matières Haut

Exemple avec FlipH()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:4()</title>
  4. <meta name="Reply-to" content="deunamuno.miguel@gmail.com">
  5. <meta name="Copyright" content="Miguel de Unamuno">
  6. <meta http-equiv="content-language" content="fr">
  7. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  8.  
  9. body {
  10. margin: 1px;
  11. padding: 7px;
  12. font-family: verdana;
  13. font-size: 20px;
  14. min-width: 646px;
  15. }
  16. </style>
  17.  
  18. </head>
  19.  
  20. <body bgcolor="#FFFFFF" text="#000000">
  21. <img
  22. style="filter:FlipH();"
  23. src="4Filter.jpg"
  24. align="center"
  25. width="92"
  26. height="94"
  27. alt="FlipH
  28. appliqu&eacute; &agrave; une image">
  29. <span style="width: 100%; filter:FlipH();">
  30. FlipH
  31. appliqu&eacute; &agrave; du texte
  32. </span>
  33. </body>
  34. </html>

Table des matières Haut

Exemple avec FlipV()

  1. <!DOCTYPE html PUBLIC
  2. "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <head>
  5. <title>filter:5()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="Description" content="Utilisation des filtres, Demo">
  8. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  9. <meta name="Reply-to" content="turing.alanmathison@infobrol.int">
  10. <meta name="Publisher" content="Turing">
  11. <meta name="Copyright" content="Alan Mathison Turing">
  12. <meta http-equiv="content-language" content="fr">
  13. </head>
  14. <body>
  15. <h1>Exemple de filtre FlipV</h1>
  16. <div align="center">
  17. <img
  18. src="filter_5.gif"
  19. style="filter:FlipV()"
  20. width="132"
  21. height="95"
  22. alt="Exemple de filtre 5"
  23. border="0">
  24. </div>
  25. </body>
  26. </html>

Table des matières Haut

Exemple avec Glow()

  1. <!DOCTYPE html PUBLIC
  2. "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <head>
  5. <title>filter:6()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="Author" lang="fr" content="Carl Zeiss">
  8. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  9. <meta name="Publisher" content="Abrikosov">
  10. <meta name="Copyright" content="Alexei Abrikosov">
  11. <meta http-equiv="content-language" content="fr">
  12. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  13. </head>
  14. <body>
  15. <h1>Exemple de filtre Glow</h1>
  16. width:100%; padding:13px; font-size:11pt; color:red;
  17. filter:6(color=#DDBB99, strength=5)">
  18. Application de Glow(),
  19. texte avec Glow
  20. The quick brown fox jumped over the lazy dog.
  21. The quick brown fox jumped over the lazy dog.
  22. The quick brown fox jumped over the lazy dog.
  23. The quick brown fox jumped over the lazy dog.
  24. </div>
  25. </body>
  26. </html>

Table des matières Haut

Exemple avec Gray()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:7()</title>
  4. <meta http-equiv="pragma" content="no-cache">
  5. <meta name="Reply-to" content="jeremy@bentham.net">
  6. <meta name="Copyright" content="Jeremy Bentham">
  7. <meta http-equiv="content-language" content="fr">
  8. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  9.  
  10. body {
  11. margin: 1px;
  12. padding: 7px;
  13. font-family: verdana;
  14. font-size: 20px;
  15. min-width: 646px;
  16. }
  17. </style>
  18.  
  19. </head>
  20.  
  21. <body bgcolor="#FFFFFF" text="#000000">
  22. <form>
  23. <textarea id="test_textarea"
  24. style="filter:Gray();"
  25. rows="16"
  26. cols="8">
  27. Mauris et orci. Aenean nec lorem. In porttitor. Donec laoreet
  28. nonummy augue. Suspendisse dui purus, scelerisque at, vulputate
  29. vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis
  30. eleifend. Ut nonummy. Fusce aliquet pede non pede.
  31. Suspendisse dapibus lorem pellentesque magna. Integer nulla.
  32. Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet
  33. euismod, purus ipsum pretium metus, in lacinia nulla nisl eget
  34. sapien. Donec ut est in lectus consequat consequat. Etiam eget
  35. dui. Aliquam erat volutpat. Sed at lorem in nunc porta tristique.
  36. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  37. Maecenas porttitor congue massa. Fusce posuere, magna sed
  38. pulvinar ultricies, purus lectus malesuada libero, sit amet
  39. commodo magna eros quis urna. Nunc viverra imperdiet enim.
  40. Fusce est. Vivamus a tellus. Pellentesque habitant morbi
  41. tristique senectus et netus et malesuada fames ac turpis
  42. egestas. Proin pharetra nonummy pede.
  43. type="button"
  44. name="btn1"
  45. value="Test"
  46. style="filter:Gray();" />
  47. </form>
  48. </body>
  49. </html>

Table des matières Haut

Exemple avec Invert()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <head>
  4. <title>filter:8()</title>
  5. <meta http-equiv="pragma" content="no-cache">
  6. <meta name="Author" lang="fr" content="James Prescott Joule">
  7. <meta name="Description" content="Utilisation des filtres, Demo">
  8. <meta name="Reply-to" content="bohr.niels@infobrol.int">
  9. <meta name="Copyright" content="Niels Bohr">
  10. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  11. </head>
  12. <body>
  13. <img
  14. style="filter:Invert();"
  15. src="8Filter.jpg"
  16. align="center"
  17. width="82"
  18. height="97"
  19. alt="Invert
  20. appliqu&eacute; &agrave; une image">
  21. <span style="width: 100%; filter:Invert();">
  22. Invert
  23. appliqu&eacute; &agrave; du texte
  24. </span>
  25. </body>
  26. </html>

Table des matières Haut

Exemple avec Mask()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <head>
  4. <title>filter:9()</title>
  5. <meta name="Reply-to" content="engels.friedrich@infobrol.pro">
  6. <meta name="Publisher" content="Engels">
  7. <meta name="Copyright" content="Friedrich Engels">
  8. <meta http-equiv="content-language" content="fr">
  9. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  10. <body bgcolor="#FFFFFF" text="#000000">
  11. <div style="width: 100%; filter:Mask(color=#DDBB99);">
  12. Ceci est un texte avec Mask...
  13. </div>
  14. </body>
  15. </html>

Table des matières Haut

Exemple avec Shadow()

  1. <head>
  2. <title>filter:10()</title>
  3. <meta http-equiv="pragma" content="no-cache">
  4. <meta name="Publisher" content="Liskov">
  5. <meta name="Copyright" content="Barbara Liskov">
  6. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  7.  
  8. body {
  9. margin: 1px;
  10. padding: 7px;
  11. font-family: verdana;
  12. font-size: 20px;
  13. min-width: 646px;
  14. }
  15. </style>
  16.  
  17. </head>
  18.  
  19. <body bgcolor="#FFFFFF" text="#000000">
  20. <h1>Exemple de filtre Shadow</h1>
  21. <div align="center">
  22. <img
  23. src="filter_10.gif"
  24. style="filter:Shadow(direction=90, color=#DDBB99)"
  25. width="30"
  26. height="185"
  27. alt="Exemple de filtre 10"
  28. border="0">
  29. </div>
  30. </body>
  31. </html>

Table des matières Haut

Exemple avec Wave()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <head>
  3. <title>filter:11()</title>
  4. <meta name="Author" lang="fr" content="Bill Joy">
  5. <meta name="Reply-to" content="torvalds.linus@infobrol.biz">
  6. <meta name="Copyright" content="Linus Torvalds">
  7. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  8.  
  9. body {
  10. margin: 1px;
  11. padding: 7px;
  12. font-family: verdana;
  13. font-size: 20px;
  14. min-width: 646px;
  15. }
  16. </style>
  17.  
  18. </head>
  19.  
  20. <body bgcolor="#FFFFFF" text="#000000">
  21. <div style="width: 100%; filter:Wave(freq=12, light=33, phase=32, strength=2);">
  22. Ceci est un texte avec Wave...
  23. </div>
  24. </body>
  25. </html>

Table des matières Haut

Exemple avec XRay()

  1. <!DOCTYPE html PUBLIC
  2. "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <head>
  5. <title>filter:12()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="Author" lang="fr" content="Jon Postel">
  8. <meta name="Description" content="Utilisation des filtres, Demo">
  9. <meta name="Reply-to" content="claude@shannon.info">
  10. <meta http-equiv="content-language" content="fr">
  11. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  12. </head>
  13. <body>
  14. <img
  15. style="filter:XRay();"
  16. src="12Filter.jpg"
  17. align="center"
  18. width="106"
  19. height="117"
  20. alt="XRay
  21. appliqu&eacute; &agrave; une image">
  22. <span style="width: 100%; filter:XRay();">
  23. XRay
  24. appliqu&eacute; &agrave; du texte
  25. </span>
  26. </body>
  27. </html>

Table des matières Haut

Liste de filtres

#NomEffet
#NomEffet
0Alpha()effet de fusion de l'avant-plan et l'arrière-plan
1Blur()effet d'estompe
2Chroma()effet de couleur transparente
3DropShadow()effet d'ombrage
4FlipH()effet de symétrie sur axe horizontal
5FlipV()effet de symétrie sur axe vertical
6Glow()effet de bords flambants
7Gray()effet de nuances de gris
8Invert()effet d'inversion
9Mask()effet de masque transparent
10Shadow()effet d'ombres
11Wave()effet d'ondulation
12XRay()effet négatif photo

Afficher tous les filtres avec exemples.

Document créé le 27/02/2003, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/html-filtres-rf-wave.htmlxhtml-rf-th.htmlhtml-filtres-rf-all.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Filtres : selfhtml (version 13/02/10)

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut