تسليم حلول: مهمة التدرب على الـ ID

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>rectangles</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            margin: 20px;
            display: inline-block;
        }
        #red {
            background-color: red;
        }
        #green {
            background-color: green;
        }
        #blue {
            background-color: blue;
        }
    </style>
</head>
<body>
    <div id="red"></div>
    <div id="green"></div>
    <div id="blue"></div>
</body>
</html>
2 Likes

مهمة التدرب على الـ ID :blush::

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">   
        <title></title>
        <style>
            div{
                width: 150px;
                height: 150px;
                margin: 10px;
                display: inline-block;
            }
            #red{
                background-color: red;

            }
            #green{
                background-color: green;

            }
            #blue{
                background-color: blue;

            }
        </style>

    </head>
    <body>
        <div id="red"></div>
        <div id="green"></div>
        <div id="blue"></div>
    </body>
</html>
2 Likes
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        #kk{background-color:red;width:90px;height:90px;display:inline-block;margin-right: 20px;}
        #kd{background-color:green;width:90px;height:90px;display: inline-block;margin-right:20px;}
        #dk{background-color:blue;width:90px;height: 90px;display: inline-block;margin-right:20px;}
    </style>

    <title>Document</title>
</head>
<body>
    <div id="kk"></div>
    <div id= "kd"></div>
    <div id ="dk"></div>
</body>
</html>
2 Likes

ميه ميه لا توجد ملاحظات :clap:
@abuali
@a.djenane
@amtma20
@Bashir
@mo7ammad
@YassinKhamlichi

4 Likes

جيد ولكن انتبه لا داعي لتكرار كلا من width, height and display مع كل div وكلهم نفس الشيء
يمكنك عمل ذلك

div{
          display: inline-block;
          width: 150px;
          height: 150px;  
        }
2 Likes

شكرا

2 Likes
<!DOCTYPE html>
<html lang="en">
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>task</title>
    <style>
      div{
        display: inline-block;
        width: 150px;
        height: 150px;
        margin: 35px;
      }
      #box-one{
        background-color: red;
      }
      #box-two{
        background-color: green;
      }
      #box-three{
        background-color: blue;
      }
    </style>
  </head>
  <body>
    <div id="box-one"></div>
    <div id="box-two"></div>
    <div id="box-three"></div>
  </body>
</html>
2 Likes
<!DOCTYPE html>
<html>

<head>
    <title>ID</title>
    <meta charset="utf-8">
    <style>
        div {
            display: inline-block;
            width: 100px;
            height: 100px;
            margin: 25px;
        }

        #red {
            background-color: red;
        }

        #green {
            background-color: green;
        }

        #blue {
            background-color: blue;
        }

    </style>
</head>

<body>
    <div id="red"></div>
    <div id="green"></div>
    <div id="blue"></div>
</body>

</html>
2 Likes
<!DOCTYPE html>
<html lang="en">
 <html>دا زيادة بالخطأ 

رائع :+1: @Dalia-noor فيه علامة البداية للعنصر زايادة <html>

احسنت ماذن :+1: @Mazen بس نسق الكود راعي المسافات

1 Like

مراجعة أكوادك من قبل المدربين المختصين متاحة فقط للمسجلين في مخيم كورتابز :point_left: coretabs.net