A
A
Alexander2018-08-18 11:54:48
Layout
Alexander, 2018-08-18 11:54:48

How to include svg with an external file?

I can not figure out how to connect so that it works fine. I do everything according to the article from this site https://bit.ly/2PkZkUS and everything worked fine until I connected it with an external file. The icon is not displayed on the page, although when I connected the same sprite code on the page, everything worked.
The html page has the following code:

<svg class="inline-svg-icon">
  <use xlink:href="test.svg#cloud"></use>
</svg>

In the external file test.svg, the code is in the screenshot.5b77dec756649300502023.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question