Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a gradient background with two colors of your choice.

Easy

Problem Statement

Create a gradient background with two colors of your choice.

Sample Input

A webpage with a body element.

Sample Output

The webpage has a gradient background blending two colors.

Limits

Time: 2s · Memory: 256 MB

Code Editor

Try your code in this preview. Submit marks it done.

<!DOCTYPE html> <html> <head> <style> /* Add CSS here to create the gradient background */ </style> </head> <body> </body> </html>

Document

To view the HTML changes, please type the code within the editor