I'm new, tell me how to implement so that when you hover and click on the mouse button, the text should be made invisible. And when you click on the spacebar, it will be deleted from the page. Can this be done with just HTML and CSS? Or can it be implemented using JavaScript? Tell me how to do it better? Here is the code where I implemented the text change:
.body {
background: #f1f1f1;
font-family: tahoma;
}
.container {
width: 600px;
margin: 70px auto;
}
.block {
padding: 40px;
border: 1px solid #ddd;
color: #666;
background: #fff;
}
.eng {
color: lime;
font-family: sans-serif;
display: none;
}
.container_1:hover .rus {
display: none;
}
.container_1:hover .eng {
display: block;
}
<div class="container">
<div class="container_1">
<div class="block rus">
Junior Frontend Developer
</div>
<div class="block eng">
Junior Frontend Developer
</div>
</div>
</div>
Now you need to do it on mouse click and space, but I don’t really understand how to implement it