<svg height='100' width='100' viewBox='0 0 100 100'> <style> .polylogobox { fill: #ef402a; transition: .2s; } .polylogobox:hover { fill: #fff; stroke: #ef402a; stroke-width: 3px; } .polylogobox:hover + text { fill: #ef402a; } .logoletter { font-size: 26px; fill: white; font-family: Arial, sans-serif; transition: .2s; } .logoname { font-size: 32px; fill: white; } </style> <polygon class='polylogobox' points='22,0 44,0 48,6 72,6 72,46 22,46' /> <text class='logoletter' x='38' y='36'>E</text> <text class='logoname' x='6' y='94'>Expire</text> </svg> Made such a logo using SVG
I saved it in .svg format, and then I tried to add it to the page using the img tag like this:
<img src="img/logo.svg" alt="asd"> For some reason, the logo does not want to be added, the path is 100% correct, the file name is also 100% correct.
If you add the same code to the page without saving to the SVG file, then everything works.