PrepAway - Latest Free Exam Questions & Answers

You need to determine how the webpage will appear when the CSS styles are applied

You develop an HTML5 webpage. You have the following HTML markup: (Line numbers are for
reference only.)

The webpage also contains the following CSS markup:

You need to determine how the webpage will appear when the CSS styles are applied.
Select two.

PrepAway - Latest Free Exam Questions & Answers

A.
The first row of the table will have a red background.

B.
The second row of the table will have a red background.

C.
The second cell in the first row of the table will have a blue background.

D.
The second cell in the third row of the table will have a blue background.

E.
The second cell in the third row of the table will have not have blue background.

Explanation:

29 Comments on “You need to determine how the webpage will appear when the CSS styles are applied

    1. Damien says:

      Hi nazish ali. When you typed it, I think you missed something…in the first , there are no elements. They are elements instead. So C is wrong, but A and D are correct.




      1



      0
  1. Brian says:

    The answer is wrong, it suppose to be A & D only. The first row, all cell’s background is red then in the last row, only the first cell and the third cell are red. On the second cell, the from the second row until third row the background is blue.

    Here’s the confirmation:

    table { border: 1px solid black; font-family: Arial; }

    tr:nth-child(odd){ background-color: red; }

    tr td:nth-of-type(even) {background-color: blue; }

    Fruit
    Quantity
    Price

    Apple
    48
    $0.29

    Banana
    72
    $0.19

    Watermelon
    14
    $3.99




    0



    0
  2. Brian says:

    table { border: 1px solid black; font-family: Arial; }
    tr:nth-child(odd){ background-color: red; }
    tr td:nth-of-type(even) {background-color: blue; }

    Fruit
    Quantity
    Price

    Apple
    48
    $0.29

    Banana
    72
    $0.19

    Watermelon
    14
    $3.99




    0



    0
  3. Brian says:

    table { border: 1px solid black; font-family: Arial; }
    tr:nth-child(odd){ background-color: red; }tr td:nth-of-type(even) {background-color: blue; }FruitQuantityPrice
    Apple48$0.29Banana72$0.19Watermelon14$3.99




    0



    0
    1. Dyna says:

      Victor you were close ,i think you made a minor error on your code check line 30. You should remove tr so that your code would be correct. Yes the correct answer is A and D.




      0



      0
  4. Shahid Mahmood Khawaja says:

    Correct Answer ACD

    Complete code is here:

    table{
    border: 1px black solid;
    font-family: Arial;
    }

    tr:nth-child(odd){
    background-color: red;
    }

    tr td:nth-of-type(even)
    {
    background-color: blue;
    }

    Fruit
    Quantity
    Price

    Apple
    45
    23.5

    Banans
    29
    14

    Watermallen
    2
    14




    0



    0
  5. abdullah tahan says:

    table{
    border:1px solid black;
    font-family:Arial;
    }
    tr:nth-child(odd){
    background-color:Red;
    }
    tr td:nth-of-type(even){background-color:blue;}

    1
    2
    3

    1a
    2b
    3c

    1a
    2b
    3c

    1qw
    2qw
    3qw

    correct answer : C , D




    0



    0
    1. abdullah tahan says:

      table{
      border:1px solid black;
      font-family:Arial;
      }
      tr:nth-child(odd){
      background-color:Red;
      }
      tr td:nth-of-type(even){background-color:blue;}

      1
      2
      3

      1a
      2b
      3c

      1a
      2b
      3c

      1qw
      2qw
      3qw

      correct answer : A, D
      didn’t pay attention on TH of the table




      0



      0

Leave a Reply