how to use linear gradient in html css code example Example: css horizontal linear gradient background: linear-gradient(to left, red, blue);