You must be logged in to access this section.
Login/Sign updiv > span { color: red; }
<!DOCTYPE html>
<html>
<head>
<style>
div > span{
color:red;
}
</style>
</head>
<body>
<div>
<span>
yes
</span>
<p>
no
</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>span تگ </title> <style> div > span { color: red; } </style> </head> <body> <div><span>This text will be red.</span> <div> </div><span>This text will also be red.</span> </div> <span>This text will not be red.</span> </body> </html>
div > span { color: red; # Change the color of the text to the red }
<!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>span{ background-color: red; } div{ background-color: aqua; } </style> </head> <body> <div > <span>ghjkl</span> </div> <div> cfghjkl</div> </body> </html>
Submitting answers is currently unavailable.
Write a program that gets distance to meters and converts to kilometers and shows at the output tips: each km = 1000 m
Write a program that receives users' student names and number and stores in a file called Students.txt. Also, after each storage, display the entire information of this file at the output.
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.