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. <?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:0()</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="Author" lang="fr" content="Gene Amdahl">
  7. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  8. <meta name="Reply-to" content="taine.hippolyte@infobrol.biz">
  9. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  10.  
  11. body {
  12. margin: 4px;
  13. padding: 14px;
  14. font-family: verdana;
  15. font-size: 8px;
  16. min-width: 677px;
  17. background:#FFFFFF;
  18. color:#000000;
  19. }
  20. </style>
  21.  
  22. </head>
  23.  
  24. <body>
  25. <h1>Exemple de filtre Alpha</h1>
  26. <div align="center">
  27. <img
  28. src="filter_0.gif"
  29. style="filter:Alpha(opacity=35, finishopacity=0, style=3)"
  30. width="117"
  31. height="100"
  32. alt="Exemple de filtre 0"
  33. border="0">
  34. </div>
  35. </body>
  36. </html>

Table des matières Haut

Exemple avec Blur()

  1. <head>
  2. <title>filter:1()</title>
  3. <meta name="Author" lang="fr" content="Louis Breguet">
  4. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  5. <meta http-equiv="content-language" content="fr">
  6. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  7.  
  8. body {
  9. margin: 4px;
  10. padding: 14px;
  11. font-family: verdana;
  12. font-size: 8px;
  13. min-width: 677px;
  14. background:#FFFFFF;
  15. color:#000000;
  16. }
  17. </style>
  18.  
  19. </head>
  20.  
  21. <body>
  22. width:100%;
  23. padding:18px;
  24. font-size:36pt;
  25. color:blue;
  26. filter:Blur(strength=11)">
  27. Exemples d'utilisation de filtres</p>
  28. </div>
  29.  
  30. <br />
  31. <br />
  32.  
  33. <tr valign="top">
  34. <td width="22%" height="218">
  35. The quick brown fox jumped over the lazy dog.
  36. </td>
  37. <td width="21%">
  38. &nbsp;
  39. </td>
  40. <td width="57%">
  41. The quick brown fox jumped over the lazy dog.
  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. </td>
  46. </tr>
  47. </table>
  48.  
  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 http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="pragma" content="no-cache">
  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@infobrol.biz">
  11. <meta name="Publisher" content="Dunoyer">
  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: 4px;
  17. padding: 14px;
  18. font-family: verdana;
  19. font-size: 8px;
  20. min-width: 677px;
  21. background:#FFFFFF;
  22. color:#000000;
  23. }
  24. </style>
  25.  
  26. </head>
  27.  
  28. <body>
  29. <div style="width: 100%; filter:Chroma(color=#DDBB99);">
  30. Ceci est un texte avec Chroma...
  31. </div>
  32. </body>
  33. </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. <head>
  4. <title>filter:3()</title>
  5. <meta name="Reply-to" content="fleming.alexander@infobrol.pro">
  6. <meta name="Publisher" content="Fleming">
  7. <meta name="Copyright" content="Alexander Fleming">
  8. <meta http-equiv="content-language" content="fr">
  9. </head>
  10. <body bgcolor="#FFFFFF" text="#000000">
  11. <h1>Exemple de filtre DropShadow</h1>
  12. width:100%; padding:16px; font-size:25pt; color:red;
  13. filter:3(color=#DDBB99, offx=3, offy=3)">
  14. Application de DropShadow(),
  15. texte avec DropShadow
  16. The quick brown fox jumped over the lazy dog.
  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. </div>
  21. </body>
  22. </html>

Table des matières Haut

Exemple avec FlipH()

  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:4()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta http-equiv="pragma" content="no-cache">
  8. <meta name="Reply-to" content="tavernier.guy@infobrol.pro">
  9. <meta name="Copyright" content="Guy Tavernier">
  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: 6px;
  16. font-family: verdana;
  17. font-size: 13px;
  18. min-width: 675px;
  19. }
  20. </style>
  21.  
  22. </head>
  23.  
  24. <body bgcolor="#FFFFFF" text="#000000">
  25. <img
  26. style="filter:FlipH();"
  27. src="4Filter.jpg"
  28. align="center"
  29. width="87"
  30. height="76"
  31. alt="FlipH
  32. appliqu&eacute; &agrave; une image">
  33. <span style="width: 100%; filter:FlipH();">
  34. FlipH
  35. appliqu&eacute; &agrave; du texte
  36. </span>
  37. </body>
  38. </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. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4. <head>
  5. <title>filter:5()</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <meta name="Author" lang="fr" content="Phil Zimmerman">
  8. <meta name="Description" content="Utilisation des filtres, Demo">
  9. <meta name="Reply-to" content="jamesprescott@joule.org">
  10. <meta http-equiv="content-language" content="fr">
  11. </head>
  12. <body bgcolor="#FFFFFF" text="#000000">
  13. <img
  14. style="filter:FlipV();"
  15. src="5Filter.jpg"
  16. align="center"
  17. width="79"
  18. height="120"
  19. alt="FlipV
  20. appliqu&eacute; &agrave; une image">
  21. <span style="width: 100%; filter:FlipV();">
  22. FlipV
  23. appliqu&eacute; &agrave; du texte
  24. </span>
  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="Description" content="Utilisation des filtres, Demo">
  8. <meta name="Reply-to" content="amaduzzi.giovannicristofano@infobrol.pro">
  9. <meta name="Copyright" content="Giovanni Cristofano Amaduzzi">
  10. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  11. <body bgcolor="#FFFFFF" text="#000000">
  12. width:100%;
  13. padding:10px;
  14. font-size:25pt;
  15. color:blue;
  16. filter:Glow(strength=9, color=#cd853f)">
  17. Exemples d'utilisation de filtres</p>
  18. </div>
  19.  
  20. <br />
  21. <br />
  22.  
  23. <tr valign="top">
  24. <td width="22%" height="218">
  25. The quick brown fox jumped over the lazy dog.
  26. The quick brown fox jumped over the lazy dog.
  27. The quick brown fox jumped over the lazy dog.
  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. The quick brown fox jumped over the lazy dog.
  39. The quick brown fox jumped over the lazy dog.
  40. </td>
  41. </tr>
  42. </table>
  43.  
  44. </body>
  45. </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. <head>
  4. <title>filter:7()</title>
  5. <meta name="Description" content="Utilisation des filtres, Demo">
  6. <meta name="Reply-to" content="jefferson.thomas@infobrol.pro">
  7. <meta name="Publisher" content="Jefferson">
  8. <meta name="Copyright" content="Thomas Jefferson">
  9. <meta http-equiv="content-language" content="fr">
  10. </head>
  11. <body>
  12. width:100%;
  13. padding:12px;
  14. font-size:41pt;
  15. color:blue;
  16. filter:Gray()">
  17. Exemples d'utilisation de filtres</p>
  18. </div>
  19.  
  20. <br />
  21. <br />
  22.  
  23. <tr valign="top">
  24. <td width="22%" height="218">
  25. The quick brown fox jumped over the lazy dog.
  26. </td>
  27. <td width="21%">
  28. &nbsp;
  29. </td>
  30. <td width="57%">
  31. The quick brown fox jumped over the lazy dog.
  32. The quick brown fox jumped over the lazy dog.
  33. The quick brown fox jumped over the lazy dog.
  34. The quick brown fox jumped over the lazy dog.
  35. </td>
  36. </tr>
  37. </table>
  38.  
  39. </body>
  40. </html>

Table des matières Haut

Exemple avec Invert()

  1. <head>
  2. <title>filter:8()</title>
  3. <meta name="Description" content="Utilisation des filtres, Demo">
  4. <meta name="Identifier-URL" content="https://www.gaudry.be/">
  5. <meta name="Reply-to" content="gaspard-gustave@coriolis.org">
  6. <meta name="Copyright" content="Gaspard-Gustave Coriolis">
  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: 4px;
  12. padding: 14px;
  13. font-family: verdana;
  14. font-size: 8px;
  15. min-width: 677px;
  16. background:#FFFFFF;
  17. color:#000000;
  18. }
  19. </style>
  20.  
  21. </head>
  22.  
  23. <body>
  24. <h1>Exemple de filtre Invert</h1>
  25. width:100%; padding:17px; font-size:23pt; color:red;
  26. filter:8()">
  27. Application de Invert(),
  28. texte avec Invert
  29. The quick brown fox jumped over the lazy dog.
  30. The quick brown fox jumped over the lazy dog.
  31. The quick brown fox jumped over the lazy dog.
  32. The quick brown fox jumped over the lazy dog.
  33. </div>
  34. </body>
  35. </html>

Table des matières Haut

Exemple avec Mask()

  1. <head>
  2. <title>filter:9()</title>
  3. <meta name="Reply-to" content="hertz.gustavludwig@gmail.com">
  4. <meta name="Copyright" content="Gustav Ludwig Hertz">
  5. <meta http-equiv="content-language" content="fr">
  6. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  7. <body bgcolor="#FFFFFF" text="#000000">
  8. <h1>Exemple de filtre Mask</h1>
  9. width:100%; padding:8px; font-size:18pt; color:red;
  10. filter:9(color=#DDBB99)">
  11. Application de Mask(),
  12. texte avec Mask
  13. The quick brown fox jumped over the lazy dog.
  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. </div>
  18. </body>
  19. </html>

Table des matières Haut

Exemple avec Shadow()

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

Table des matières Haut

Exemple avec Wave()

  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:11()</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="Description" content="Utilisation des filtres, Demo">
  7. <meta name="Reply-to" content="tucker.benjamin@infobrol.com">
  8. <meta name="Copyright" content="Benjamin Tucker">
  9. <meta http-equiv="content-language" content="fr">
  10. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  11.  
  12. body {
  13. margin: 4px;
  14. padding: 14px;
  15. font-family: verdana;
  16. font-size: 8px;
  17. min-width: 677px;
  18. background:#FFFFFF;
  19. color:#000000;
  20. }
  21. </style>
  22.  
  23. </head>
  24.  
  25. <body>
  26. <form>
  27. <textarea id="test_textarea"
  28. style="filter:Wave(freq=17, light=87, phase=42, strength=9);"
  29. rows="9"
  30. cols="4">
  31. The quick brown fox jumped over the lazy dog.
  32. The quick brown fox jumped over the lazy dog.
  33. The quick brown fox jumped over the lazy dog.
  34. type="button"
  35. name="btn1"
  36. value="Test"
  37. style="filter:Wave(freq=17, light=87, phase=42, strength=9);" />
  38. </form>
  39. </body>
  40. </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 name="Author" lang="fr" content="Kenneth Thompson">
  5. <meta name="Reply-to" content="bernoulli.jacques@gmail.com">
  6. <meta name="Publisher" content="Bernoulli">
  7. <meta name="Copyright" content="Jacques Bernoulli">
  8. <meta http-equiv="content-language" content="fr">
  9. <link media="screen" type="text/css" rel="stylesheet" href="filters.css" />
  10. </head>
  11. <body>
  12. <h1>Exemple de filtre XRay</h1>
  13. <div align="center">
  14. <img
  15. src="filter_12.gif"
  16. style="filter:XRay()"
  17. width="130"
  18. height="59"
  19. alt="Exemple de filtre 12"
  20. border="0">
  21. </div>
  22. </body>
  23. </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

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