برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام.yellow {background: yellow;}
<!DOCTYPE html> <html dir="rtl"> <head> <meta charset="UTF-8"> <meta name="viewport"content="width=device.width, initial-scale=1.0"> <title> رنگ</title> </head> <style> div{ background-color: yellow } </style> <body> <div id="box" class="yellow">رضا</div> <div class="yellow">هادی</div> <div class="yellow mybox">هوشنگ</div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> #box , .yellow , .mybox { background-color: yellow; width: 100px; height: 100px; border-radius: 15px; margin: 10px; } </style> </head> <body> <div id="box" class="yellow"></div> <div class="yellow"></div> <div class="yellow mybox"></div> </body> </html>
* { color: yellow }
#box, .yellow { background-color: yellow; # Background color change to yellow }
<!DOCTYPE html>
<html>
<head>
<style>
div.yellow{
background-color: yellow;
}
</style>
</head>
<body>
<div id="box" class="yellow">hello</div>
<div class="yellow">im</div>
<div class="yellow mybox">RezaNajafiane</div>
</body>
</html>
div{ background-color: yellow; }
Saying using Class
Submitting answers is currently unavailable.
Write a program that receives a number from the input and checks whether the number is segmented to 5. Tips: The numeric is on 5 segments that remain the remaining 5 zero
Write a program that receives the square area from the user and prints the size of each side in the output
Write a program that obtained a person's / BMI body / BMI formula and, according to the information below, shows the status of the person BMI = w / h * h formula = weight divided by second power BMI ...
CSS code to select all the following elements at once and change their background color to yellow<div class="yellow" id="box"></div><div class="yellow"></div><div class="yellow mybox"></div>Footer call to action
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام 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.