<?xml version="1.0" encoding="utf-8"?>

SVG text

SVG text

With SVG, you can also draw... text on a web page — how about that? Plus, the browser renders the <text> element as a graphic so you can scale or rotate it. Because it acts like text, users may select and copy it like text. The attributes x and y define the location of the top-left corner, whereas the fill attribute defines the fill color. You can also set the font size in pixels with the font-size attribute.

Improve your UX & Product skills with interactive courses that actually work