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

Programming Exercises

Set the opacity of a div to 50%.

Easy

Problem Statement

Set the opacity of a div to 50%.

Sample Input

A webpage with a <div> tag.

Sample Output

The div appears semi-transparent.

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 set opacity */ </style> </head> <body> <div>Content inside the div</div> </body> </html>

Document

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