write a code by use of html,css,js. for placing the image in background and some thing written over image . i want background shoud be lighter
Please solve the Program 9.5 in JAVA language.
Class-9(CICSE)
Subject-Computer Sc...
https://brainly.in/question/5851822?utm_source=android&utm_medium=share&utm_campaign=question
Answers
Hi
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sandbox</title>
<style>
* {
box-sizing: border-box;
}
body, html {
height: 100%;
width: 100%;
}
body {
display: flex;
align-items: center;
justify-content: center;
}
.text {
font-size: 11vw;
font-family: sans-serif;
font-weight: bold;
color: #fff;
text-shadow: 5px 5px 2px rgba(0,0,0,.5);
text-align: center;
}
</style>
</head>
<body>
<script>
document.body.style = "background: url('https://source.unsplash.com/1000x500/?water'), skyblue; background-repeat: no-repeat; background-size: cover;";
const text = document.createElement('h1');
text.className = "text";
text.textContent = "Hello Ajay!";
document.body.appendChild(text);
</script>
</body>
</html>
You are smart enough to understand this code.. so no explanation!