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. <head>
  2. <title>filter:0()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta http-equiv="pragma" content="no-cache">
  5. <meta name="Description" content="Utilisation des filtres, Demo">
  6. <meta name="Publisher" content="Thompson">
  7. <meta name="Copyright" content="Kenneth Thompson">
  8. <meta http-equiv="content-language" content="fr">
  9. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  10.  
  11. body {
  12. margin: 1px;
  13. padding: 9px;
  14. font-family: verdana;
  15. font-size: 20px;
  16. min-width: 697px;
  17. }
  18. </style>
  19.  
  20. </head>
  21.  
  22. <body bgcolor="#FFFFFF" text="#000000">
  23. <img
  24. style="filter:Alpha(opacity=95, finishopacity=0, style=2);"
  25. src="0Filter.jpg"
  26. align="center"
  27. width="120"
  28. height="100"
  29. alt="Alpha
  30. appliqu&eacute; &agrave; une image">
  31. <span style="width: 100%; filter:Alpha(opacity=95, finishopacity=0, style=2);">
  32. Alpha
  33. appliqu&eacute; &agrave; du texte
  34. </span>
  35. </body>
  36. </html>

Table des matières Haut

Exemple avec Blur()

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

Table des matières Haut

Exemple avec Chroma()

  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:2()</title>
  6. <meta name="Reply-to" content="pavlov.ivanpetrovitch@infobrol.com">
  7. <meta name="Copyright" content="Ivan Petrovitch Pavlov">
  8. <meta http-equiv="content-language" content="fr">
  9. </head>
  10. <body>
  11. <div style="width: 100%; filter:Chroma(color=#fafad2);">
  12. Ceci est un texte avec Chroma...
  13. </div>
  14. </body>
  15. </html>

Table des matières Haut

Exemple avec DropShadow()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  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="Publisher" content="Rousseau">
  9. <meta name="Copyright" content="Jean-Jacques Rousseau">
  10. <meta http-equiv="content-language" content="fr">
  11. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  12.  
  13. body {
  14. margin: 0px;
  15. padding: 17px;
  16. font-family: verdana;
  17. font-size: 18px;
  18. min-width: 637px;
  19. background:#FFFFFF;
  20. color:#000000;
  21. }
  22. </style>
  23.  
  24. </head>
  25.  
  26. <body>
  27. <img
  28. style="filter:DropShadow(color=#fafad2, offx=3, offy=2);"
  29. src="3Filter.jpg"
  30. align="center"
  31. width="99"
  32. height="76"
  33. alt="DropShadow
  34. appliqu&eacute; &agrave; une image">
  35. <span style="width: 100%; filter:DropShadow(color=#fafad2, offx=3, offy=2);">
  36. DropShadow
  37. appliqu&eacute; &agrave; du texte
  38. </span>
  39. </body>
  40. </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="Author" lang="fr" content="Marie Curie">
  5. <meta name="Description" content="Utilisation des filtres, Demo">
  6. <meta name="Copyright" content="Charles de Coulomb">
  7. <meta http-equiv="content-language" content="fr">
  8. </head>
  9. <body>
  10. <h1>Exemple de filtre FlipH</h1>
  11. <div align="center">
  12. <img
  13. src="filter_4.gif"
  14. style="filter:FlipH()"
  15. width="199"
  16. height="117"
  17. alt="Exemple de filtre 4"
  18. border="0">
  19. </div>
  20. </body>
  21. </html>

Table des matières Haut

Exemple avec FlipV()

  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:5()</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="Anderson Carl David">
  8. <meta name="Description" content="Utilisation des filtres, Demo">
  9. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  10. <meta name="Reply-to" content="dunoyer.charles@gmail.com">
  11. <meta name="Copyright" content="Charles Dunoyer">
  12. <meta http-equiv="content-language" content="fr">
  13. </head>
  14. <body bgcolor="#FFFFFF" text="#000000">
  15. <img
  16. style="filter:FlipV();"
  17. src="5Filter.jpg"
  18. align="center"
  19. width="83"
  20. height="112"
  21. alt="FlipV
  22. appliqu&eacute; &agrave; une image">
  23. <span style="width: 100%; filter:FlipV();">
  24. FlipV
  25. appliqu&eacute; &agrave; du texte
  26. </span>
  27. </body>
  28. </html>

Table des matières Haut

Exemple avec Glow()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4. <head>
  5. <title>filter:6()</title>
  6. <meta http-equiv="pragma" content="no-cache">
  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="guy@tavernier.net">
  10. <meta name="Publisher" content="Tavernier">
  11. <meta name="Copyright" content="Guy Tavernier">
  12. <meta http-equiv="content-language" content="fr">
  13. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  14.  
  15. body {
  16. margin: 0px;
  17. padding: 17px;
  18. font-family: verdana;
  19. font-size: 18px;
  20. min-width: 637px;
  21. background:#FFFFFF;
  22. color:#000000;
  23. }
  24. </style>
  25.  
  26. </head>
  27.  
  28. <body>
  29. width:100%;
  30. padding:19px;
  31. font-size:44pt;
  32. color:blue;
  33. filter:Glow(strength=3, color=#cd853f)">
  34. Exemples d'utilisation de filtres</p>
  35. </div>
  36.  
  37. <br />
  38. <br />
  39.  
  40. <tr valign="top">
  41. <td width="22%" height="218">
  42. The quick brown fox jumped over the lazy dog.
  43. The quick brown fox jumped over the lazy dog.
  44. The quick brown fox jumped over the lazy dog.
  45. The quick brown fox jumped over the lazy dog.
  46. </td>
  47. <td width="21%">
  48. &nbsp;
  49. </td>
  50. <td width="57%">
  51. The quick brown fox jumped over the lazy dog.
  52. The quick brown fox jumped over the lazy dog.
  53. The quick brown fox jumped over the lazy dog.
  54. The quick brown fox jumped over the lazy dog.
  55. The quick brown fox jumped over the lazy dog.
  56. </td>
  57. </tr>
  58. </table>
  59.  
  60. </body>
  61. </html>

Table des matières Haut

Exemple avec Gray()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4. <head>
  5. <title>filter:7()</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="Copyright" content="Moses Mendelssohn">
  10. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  11.  
  12. body {
  13. margin: 0px;
  14. padding: 17px;
  15. font-family: verdana;
  16. font-size: 18px;
  17. min-width: 637px;
  18. background:#FFFFFF;
  19. color:#000000;
  20. }
  21. </style>
  22.  
  23. </head>
  24.  
  25. <body>
  26. <div style="width: 100%; filter:Gray();">
  27. Ceci est un texte avec Gray...
  28. </div>
  29. </body>
  30. </html>

Table des matières Haut

Exemple avec Invert()

  1. <head>
  2. <title>filter:8()</title>
  3. <meta http-equiv="pragma" content="no-cache">
  4. <meta name="Author" lang="fr" content="James Gosling">
  5. <meta name="Description" content="Utilisation des filtres, Demo">
  6. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  7. <meta name="Reply-to" content="vonzeppelin.ferdinand@infobrol.tk">
  8. <meta name="Publisher" content="von Zeppelin">
  9. <meta name="Copyright" content="Ferdinand von Zeppelin">
  10. <meta http-equiv="content-language" content="fr">
  11. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  12.  
  13. body {
  14. margin: 0px;
  15. padding: 17px;
  16. font-family: verdana;
  17. font-size: 18px;
  18. min-width: 637px;
  19. background:#FFFFFF;
  20. color:#000000;
  21. }
  22. </style>
  23.  
  24. </head>
  25.  
  26. <body>
  27. <img
  28. style="filter:Invert();"
  29. src="8Filter.jpg"
  30. align="center"
  31. width="99"
  32. height="114"
  33. alt="Invert
  34. appliqu&eacute; &agrave; une image">
  35. <span style="width: 100%; filter:Invert();">
  36. Invert
  37. appliqu&eacute; &agrave; du texte
  38. </span>
  39. </body>
  40. </html>

Table des matières Haut

Exemple avec Mask()

  1. <head>
  2. <title>filter:9()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta http-equiv="pragma" content="no-cache">
  5. <meta name="Author" lang="fr" content="Alan Mathison Turing">
  6. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  7. <meta name="Reply-to" content="anders@hejlsberg.org">
  8. <meta name="Copyright" content="Anders Hejlsberg">
  9. <meta http-equiv="content-language" content="fr">
  10. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  11. <body bgcolor="#FFFFFF" text="#000000">
  12. <form>
  13. <textarea id="test_textarea"
  14. style="filter:Mask(color=#cd853f);"
  15. rows="9"
  16. cols="14">
  17. The quick brown fox jumped over the lazy dog.
  18. The quick brown fox jumped over the lazy dog.
  19. The quick brown fox jumped over the lazy dog.
  20. type="button"
  21. name="btn1"
  22. value="Test"
  23. style="filter:Mask(color=#cd853f);" />
  24. </form>
  25. </body>
  26. </html>

Table des matières Haut

Exemple avec Shadow()

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4. <head>
  5. <title>filter:10()</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="Carl Zeiss">
  9. <meta name="Description" content="Utilisation des filtres, Demo">
  10. <meta name="Reply-to" content="fleming.alexander@gmail.com">
  11. <meta name="Copyright" content="Alexander Fleming">
  12. <meta http-equiv="content-language" content="fr">
  13. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  14. <body bgcolor="#FFFFFF" text="#000000">
  15. width:100%;
  16. padding:20px;
  17. font-size:16pt;
  18. color:blue;
  19. filter:Shadow(color=#cd853f)">
  20. Exemples d'utilisation de filtres</p>
  21. </div>
  22.  
  23. <br />
  24. <br />
  25.  
  26. <tr valign="top">
  27. <td width="22%" height="218">
  28. The quick brown fox jumped over the lazy dog.
  29. The quick brown fox jumped over the lazy dog.
  30. </td>
  31. <td width="21%">
  32. &nbsp;
  33. </td>
  34. <td width="57%">
  35. The quick brown fox jumped over the lazy dog.
  36. The quick brown fox jumped over the lazy dog.
  37. The quick brown fox jumped over the lazy dog.
  38. </td>
  39. </tr>
  40. </table>
  41.  
  42. </body>
  43. </html>

Table des matières Haut

Exemple avec Wave()

  1. <head>
  2. <title>filter:11()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta name="Reply-to" content="proudhon.pierre-joseph@infobrol.pro">
  5. <meta http-equiv="content-language" content="fr">
  6. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  7. </head>
  8. <body>
  9. <h1>Exemple de filtre Wave</h1>
  10. width:100%; padding:16px; font-size:21pt; color:red;
  11. filter:11(light=77, freq=40)">
  12. Application de Wave(),
  13. texte avec Wave
  14. The quick brown fox jumped over the lazy dog.
  15. The quick brown fox jumped over the lazy dog.
  16. The quick brown fox jumped over the lazy dog.
  17. The quick brown fox jumped over the lazy dog.
  18. </div>
  19. </body>
  20. </html>

Table des matières Haut

Exemple avec XRay()

  1. <head>
  2. <title>filter:12()</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  4. <meta http-equiv="pragma" content="no-cache">
  5. <meta name="Description" content="Utilisation des filtres, Demo">
  6. <meta name="Reply-to" content="newton.isaac@gmail.com">
  7. <meta name="Publisher" content="Newton">
  8. <meta name="Copyright" content="Isaac Newton">
  9. <meta http-equiv="content-language" content="fr">
  10. </head>
  11. <body bgcolor="#FFFFFF" text="#000000">
  12. <img
  13. style="filter:XRay();"
  14. src="12Filter.jpg"
  15. align="center"
  16. width="86"
  17. height="103"
  18. alt="XRay
  19. appliqu&eacute; &agrave; une image">
  20. <span style="width: 100%; filter:XRay();">
  21. XRay
  22. appliqu&eacute; &agrave; du texte
  23. </span>
  24. </body>
  25. </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-all.html/html-filtres-rf-mask.html/html-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