Re:A few HTML tips
by progval on Wednesday August 24, 2016 @09:32AM
(#12351852)
We can use SVG images/sprites with an alt="" attribute.
[ Parent
| on HN ]
Re:A few HTML tips
by pseudosavant on Wednesday August 24, 2016 @01:07PM
(#12353503)
While that is probably 'better' how in practice does it matter. SVG (esp with sprints) vs icon font are basically the same. Both are ways of embedding multiple vector images in one resource that you attribute meaning to using `title` attributes. In practice they will behave pretty much exactly the same.
Re:A few HTML tips
by matthewmacleod on Wednesday August 24, 2016 @04:59PM
(#12355215)
There are still some issues with that – for example, it's easier to change attributes like text colour when using an icon font, something that becomes substantially more awkward with SVG. This is appropriate for things like buttons and other elements with hover effects.