SVG Integraton on HTML


#1

Hi,
Ive make this file : logo.svg

<svg width="300" height="30" viewBox="0 0 300 30" version="1.1" xmlns="http://www.w3.org/2000/svg">
    >
      <style>
        @import url(https://fonts.googleapis.com/css?family=Lora);
        text {
            font-family: 'Lora', serif;
        }
      </style>
      <text x="50%" y="26" text-anchor="middle" >SALIM BENFARHAT</text>
    </svg>

When i launh logo.svg, the text style is applicated. But when i integrate the logo.svg on on html, doesn’t work. The text style is not applicated, why?


#2

The code editor doesn’t recognize a few different file types, I see no way to set this manually.