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>
<head>
<title>FORM</title>
<link rel="stylesheet" href="project.css" type="text/css">
</head>
<body>
<div>
<p>hello</p>
</div>
<div>
<b>bold</b>
</div>
<div>
<p>hello</p>
<p>hello</p>
</div>
</body>
</html>
<!--css-->
*{
padding: 0px;
margin: 0xp;
font-style: italic;
box-sizing: border-box;
}
div > p{
color: red;
}
div p{
background-color:red;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>انتخاب بر اساس فرزند</title>
<style>
div p{
background-color: red;
color: white;
}
</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 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 receives the square side length from the input and calculates its area of square area = a side of its own = a side of a power 2.
Write a program that prints the number of number multiplying numbers 1 to 10
Write a program where the user can enter the clock, minutes and seconds as the example below and from the time entered, the countdown to zero is Input: 1:22:50 # One hour and twenty minutes and fifty seconds
The program receives the amount of distance traveled to kilometers and the amount of fuel consumed in liter and prints according to the following instructions, whether the car is low or high. If the fuel consumption of this car is less than 7 liters ...
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.