OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <div> |
| 3 <p style="color:yellow;"> |
| 4 This should be yellow, as this will inherit property of div. |
| 5 </p> |
| 6 <p style="color:blue;"> |
| 7 This should be blue, as this is even child of type p. |
| 8 </p> |
| 9 <p style="color:yellow;"> |
| 10 This should be yellow, as this will inherit property of div. |
| 11 </p> |
| 12 <div style="color:yellow;"> |
| 13 This should be yellow, as it odd child of its own type. |
| 14 </div> |
| 15 </div> |
| 16 <div style="color:green;"> |
| 17 This should be green, as this is 2nd child of its own type. |
| 18 <p style="color:green;"> |
| 19 This should be green, as this will inherit property of div. |
| 20 </p> |
| 21 <p style="color:blue;"> |
| 22 This should be blue, as this is the even child of div. |
| 23 </p> |
| 24 <p style="color:green;"> |
| 25 This should be green, as this is the odd child of its own type. |
| 26 </p> |
| 27 <p style="color:blue;"> |
| 28 This should be blue, as this is the even child of paragraph. |
| 29 </p> |
| 30 </div> |
| 31 <div style="color:yellow;"> |
| 32 This should be yellow, as this odd child of its own type. |
| 33 <p style="color:yellow;"> |
| 34 This should be yellow,as this inherit property of div. |
| 35 </p> |
| 36 <span style="color:red;">This should be red,as this is the second child of d
iv </span> |
| 37 <span style="color:green;">This should be green, as this is the second child
of its own type </span> |
| 38 <div> |
| 39 <span style="color:yellow;">This should be yellow,as this will inherit p
roperty of div i.e yellow as odd of its own type <i>and </i> <i style="color:gre
en;">this should be green and italic </i></span> |
| 40 </div> |
| 41 </div> |
OLD | NEW |