Question #5

Author: admin
tags: CSS  
<div class="block1">
  <div class="block2" lang="en">
    <div class="block3">
      <div class="block4" title="hi">
        <div class="block5">
          text
        </div>
      </div>
    </div>
  </div>
</div>
.block1 .block2 [title] {
  color: red;
}

[lang] [title] {
  color: green;
}

div .block3 [title] {
  color: blue;
}

.block1 .block2 .block3 .block4 {
  color: yellow;
}
red
green
blue
yellow
Class selectors and attribute selectors have the same weight in the specificity count.
The last selector .block1 .block2 .block3 .block4 has a maximum value of B=4.
Rate the difficulty of the question:
easyhard