<!DOCTYPE html>
<html lang="en">
<head>
    <style>
        div {
            width: 100px;
            height: 100px;
        }
    </style>
</head>
<body>
    <div>
        <svg>
            <linearGradient id="gradient">
                <stop offset="0%" stop-color="green" />
            </linearGradient>
            <rect id="rect" width="100" height="100" fill="url(#gradient)">
        </svg>
    </div>
</body>
</html>
