Fieldset won't separate. Help!

Hi,
Im a super early beginner, the survey project is my first exposure to coding in any way so apologies if i seem incompetent. I’ve been using a fieldset element to make different sections, but for some reason when I did a fieldset with my radio buttons it isn’t separating it from the previous section. It also isn’t including the text for the question I asked “What is your gender identity?” I am including my code and a picture of the issue.

<!doctype html>
<html lang="en"></html> 
<head>
  <meta charset="utf-8"
  <link rel="stylesheet" href="styles.css">
  <h1>Simple Introduction Form</h1>
  </head>
  <body>
    <p id="description">Please fill out this form introducing yourself:</p>
    <form id="survey-form">
      <fieldset>
      <label for="name" id="name-label">Name:
        <input required id="name" type="text" placeholder="Enter your name"></input>
      </label>
      </fieldset>
      <fieldset>
      <label id="email-label" for="email">Email:
        <input required id="email" type="email" name="email" placeholder="Enter your email"></input>
      </label>
      </fieldset>
      <fieldset>
      <label for="number" id="number-label">Age:
        <input placeholder="Age" id="number" type= "number" min="13" max="120"></input>
        </fieldset>
        <fieldset>
          <label>What is your favorite cuisine?
            <select id="dropdown">
              <option value="">(select one)</option>
              <option value="1">Italian</option>
              <option value="2">Mexican</option>
              <option value="3">Sushi</option>
              <option value="4">Other</option>
              </label>
              </fieldset>
               
     <fieldset>What is your Gender Identity?
                <label for="female"><input id="female" type="radio" name="gender-identity" class="inline" checked>Female</input></label>
                <label for="male"><input id="male" type="radio" name="gender-identity" class="inline">Male</input></label>
                <label for="other"><input id="other" type="radio" name="gender-identity" class="inline">Other</input></label>
                </fieldset>
              
            



    </form>
    </body>

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 (').

make your all your tags are closed, and also all your elements are closed (have a closing tag)

you are missing something here, and similar errors can give you a lot of issues

Thank you for editing it for readability. I fixed the meta, thank you for catching that. Still my radio buttons aren’t working (the question isn’t shown, and the radio buttons are grouped in with the previous question). Do you see the error? I just checked to make sure my elements had closing tags @ILM

there is one that doesn’t have a closing tag and is givng you issues. Check above the disappearing elements

Okay thank you @ILM . One more question. What are the disappearing elements? / what does that mean

isn’t the fieldset not appearing? I mean that one

Oh yes yes ok thanks I will try again

you can also right click and use the format document option, it could help see the issue better

Thank you soooo much! I figured it out! I’ve been puzzled by that for so long hahahah

Try using <legend> within the fieldset