You must be logged in to access this section.
Login/Sign up<!DOCTYPE html> <html lang="en"> <head> <style> div:has(p) { background-color: red;} </style> </head> /********************************/ <body> <div> <p>hello</p> </div> <div> <b>bold</b> </div> <div> <p>hello</p> <p>hello</p> </div> </body> </html>
<!DOCTYPE html>
<html>
<head>
<style>
div > p {
background-color: red;
}
</style>
</head>
<body>
<div>
<p>hello</p>
</div>
<div>
<b>bold</b>
</div>
<div>
<p>hello</p>
<p>hello</p>
</div>
</body>
</html>
<!DOCTYPE html> <html dir="rtl"> <head> <meta charset="UTF-8"> <meta name="viewport"content="width=device.width, initial-scale=1.0"> <title> pسلکت تگ های </title> </head> <style> div:has(p) { background-color: red; } </style> <body> <div> <p>hello</p> </div> <div> <b>bold</b> </div> <div> <p>hello</p> <p>hello</p> </div> </body> </html>
<!DOCTYPE html> <html lang="en";> <head> <meta charset="UTF-8"> <meta name="viewport " content="width=device-width,intial-scale=1.0"> <title> box</title> <style> div>p{ background-color: red; } div{ background-color: aqua; } </style> </head> <body> <div > <p>dfghjk</p> </div> <div> cfghjkl</div> </body> </html>
div:has(p) { background-color: red; }
Submitting answers is currently unavailable.
Write a program that has a graphical environment and can perform the sum, subtraction, multiplication and division operations on the infinite number. (Exactly like a real calculator)
Write a program that receives the radius of the circle and prints its area and environmental area = radius * Pi (3.14) circle environment = diameter (radius * 2) * Pi (3.14)
We have a list of different items along with their discount percentage and we want to know how much the final price of each product is after considering the discount. Write a program that gets the product price as below and the percentage of discount ...
We want to open the cow door, we don't know the password, but we have the following information: the second -digit safing password and the fifth digit equivalent to the first number of the first digit of a larger unit ...
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.