HTML CSS project related

Question-Within the second section element, add two div elements with a class of question-block.

Then, within each div.question-block element, add one p element with text of incrementing numbers, starting at 1, and one fieldset element with a class of question.

My effort-

<section role="region" aria-labelledby="html-questions">
          <h2 id="html-questions">HTML</h2>
          <div class="question-block">
            <p>1
              <fieldset class="question"></fieldset>
            </p>
          </div>
          <div class="question-block">
            <p>2
              <fieldset class="question"></fieldset>
            </p>
          </div>

error thrown- Sorry, your code does not pass. You’re getting there.

You should nest one p element within each div.question-block element.

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

Hi there and welcome to our community!

For future reference, it’s much easier to help you if you include a link to the particular step which you are stuck on. I have found and added the link to your post on this occasion.

The best way to ask for help is to click the Help button, which appears after you have submitted incorrect code three times. This will create a forum help post which automatically includes your full code, a direct link to the challenge, and an opportunity for you to describe your issue in detail.

The only issue with your code for this step is that you have nested the fieldset elements inside the p elements. Both elements should be nested inside the div element, but separate from each other (i.e. the fieldset should be below the p, not nested inside it).

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