Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 4

Tell us what’s happening:
Hey Coding Team,
I’m having trouble with the “SPAN” bit (obviously lols)
I don’t know after doing the first SPAN with The CLASS FLEX.
Do I straight away add another SPAN after closing the CLASS FLEX bit? Or
Do I close first one With The /> Then add the other 2 SPAN before closing The whole SPAN with “/SPAN”?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Balance Sheet</title>
    <link rel="stylesheet" href="./styles.css">
  </head>
  <body>
    <main>
      <section>
        <h1>
          <span class="flex"/>
          <span />
          <span />
          </span>
        </h1>
      </section>
    </main>
  </body>
</html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.62

Challenge: Learn More About CSS Pseudo Selectors By Building A Balance Sheet - Step 4

Link to the challenge:

Span is not a self closing tag. The span element must have a opening and a closing tag similar to div <div> </div>

Yes, I’ve placed the closing tag on the last one within the other 2 SPAN
(it’s placed under the 2 SPAN).
I don’t know if I close it right after the CLASS FLEX because I’m trying to add another 2 SPAN within the first SPAN
I’ve just done SPAN CLASS FLEX /> SPAN SPAN “</SPAN”

Note that you are not opening the <span> tag correctly. You don’t have to add />.

1 Like

Yes this is what you are supposed to do. Just do it with proper syntax.

Ay Fam, Appreciate The Help MyBoyy Done It!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.