add white background to svg code example Example: add white background to svg <rect width="100%" height="100%" fill="red"/>