Skip to content
Junior–Senior167 views

Determining the text color inside a span tag

Asked at

Task condition

It is necessary to determine what color will be applied to the text inside the <span> tag, considering inline styles, inheritance rules, and HTML markup features.

<html>
<head>
  <title>CSS test 2</title>
</head>
<body style="color: red; font-weight: bold; display: block; background: url('bg.jpg');">
  <div>
    Some test text
    <div>
      Lorem ipsum etc...
      <span>
        One more dummy text
      </span>
    </div>
  </div>
</body>
</html>
Frontend tasks in the code trainer