Having trouble with a label appearing before an input

I have some inputs with labels that are working as should be but as i got to put another label before another input in a separate fieldset it wont appear before the input ill paste the code below any help is appreciated

<form id="survey-form">

<fieldset id="personal-details">

<label id="name-label" for="name">Enter Your First Name Here <input id="name" type="text" placeholder="John/Jane Doe" required />

<label id="email-label" for="email">Enter Your Email Here<input id="email" type="email" placeholder="johndoe123@example.com" required />

<label id="number-label" for="number">Enter Your Number Here <input id="number" type="number" placeholder="07123456789" required />

<label id="activision-id-label" for="activision-id">Enter Your Activision ID Here <input id="activision-id" required />

</fieldset>

<fieldset id="map-preferences">

<label id="dropdown1" for="favourite-core-map">What was your favourite Core map

<select id="favourite-core-map" for="favourite-core-map" required>

<option value="">(Select one) </option>

<option value="1">Derelict</option>

<option value="2">Scud</option>

<option value="3">Skyline</option>

<option value="4">Rewind</option>

</select>

<label id="dropdown2" for="least-favourite-core-map">What was your least favourite Core map

<select id="least-favourite-core-map" name="least-favourite-core-map">

<option value="">(Select one) </option>

<option value="1">Derelict</option>

<option value="2">Scud</option>

<option value="3">Skyline</option>

<option value="4">Rewind</option>

<label id="reason-label" for="reason">Tell us why these maps were your favourite and least favourite maps <input id="reason" type="text">

</fieldset>

</form>

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

which is the one that does not appear?

Hello and welcome to the forum @jackreece02 !

<label id="dropdown1" for="favourite-core-map">What was your favourite Core map

I do not see the closing label tags for these labels. Try inserting the closing label tags after the input elements, if that is where they are to go.

Wishing you good progress on your coding journey. :slightly_smiling_face:

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