**Over the past few months, we’ve looked at various tricks and effects that can be achieved when using an SVG file in a web page via the HTML element. But using an SVG like that is subject to various security restrictions imposed by the browser, preventing you from referencing external files (fonts, css, linked bitmaps) or using JavaScript. So now we’re going to move on to alternative methods of using SVG in a web page, which offer a little more scope for customisation. This instalment will look at a little CSS trick for inheriting a color from your HTML page into your SVG. Unfortunately, the laws of CSS scoping mean that this one works only if you inline your SVG code right into your HTML. This requires some care and attention, but isn’t really that difficult, as you can largely copy and paste the contents of your SVG file from within a text editor. It does bloat the size of your HTML, but, conversely, you make a saving in not having a separate SVG image to download. Let’s start with a basic HTML page (top right).** Dans les derniers mois, nous avons regardé divers astuces et effets qui peuvent être réalisés en utilisant un fichier SVG dans une page Web via l'élément HTML . Mais une telle utilisation d'un fichier SVG est soumise à diverses restrictions de sécurité imposées par le navigateur, vous empêchant de faire référence à des fichiers externes (polices, css, bitmap liés) ou d'utiliser du JavaScript. Aussi, maintenant, nous allons passer à d'autres méthodes d'utilisation du SVG dans une page Web, qui offrent un plus large espace à la personnalisation. Cet article se penchera sur une petite astuce du CSS pour hériter d'une couleur de votre page HTML dans votre SVG. Malheureusement, les lois encadrant le CSS font que celui-ci ne marche que si vous intégrez correctement votre code SVG dans votre HTML. Ceci nécessite du soin et de l'attention, mais n'est pas vraiment difficile, car vous pouvez en grande partie copier/coller le contenu de votre fichier SVG à partir d'un éditeur de texte. La taille de votre fichier HTML va enfler, mais, en retour, vous gagnerez de la place en n'ayant pas à télécharger une image SVG séparée. Commençons avec une page HTML basique (en haut à droite). **Now we need some SVG to put into the file. For this demonstration, I created a simple rounded rectangle in Inkscape, then saved it as in “Optimised SVG” format to clear out a lot of the unnecessary metadata and other content. Even then, I was able to manually trim the resulting file a little further, as the namespace declaration isn’t required, and I was left with a single wrapping the content which serves no purpose in this case. One option I did select in the save dialog was to “Convert CSS attributes to XML attributes”. This breaks down the otherwise densely filled “style” attribute into a series of individual presentation attributes. You don’t have to do that – this technique works just as well with the style attribute, or even a