Survey Form: display problem

Hello, here is the code I am struggling with :

 <fieldset>
           <label>
           What is your favorite feature of freeCodeCamp?
            <select id="feature" name="selection">
              <option value="">Select an option</option>
               <option value="1">Challenges</option>
               <option value="2">Projects</option>
               <option value="3">Community</option>
               <option value="4">Open Source</option>
           </label>
        </fieldset>
 
         <fieldset> 
           <p>What would you like to see improved? (Check all that apply)</p>
           
            <label>
              <input type="checkbox" name="improved" value="1"/>Front-end Projects
            </label>
             <label>
               <input type="checkbox" name="improved" value="2"/>Back-end Projects
             </label>
             <label>
               <input type="checkbox" name="improved" value="3"/>Data Visualization
             </label>
            <label>
               <input type="checkbox" name="improved" value="4"/>Challenges
             </label>
             <label>
               <input type="checkbox" name="improved" value="5"/>Open Source Community
             </label>
             <label>
               <input type="checkbox" name="improved" value="6"/>Gitter help rooms
             </label>
             <label>
               <input type="checkbox" name="improved" value="7"/>Videos
             </label>
             <label>
               <input type="checkbox" name="improved" value="8"/>City Meetups
             </label>
             <label>
               <input type="checkbox" name="improved" value="9"/>Wiki
             </label>
             <label>
               <input type="checkbox" name="improved" value="10"/>Forum
             </label>
             <label>
               <input type="checkbox" name="improved" value="11"/>Additional Courses
             </label>
           </fieldset>

displaypb

It appears like this, however “What would you like to see improved? (Check all that apply)” is not displayed and the first checkbox is directly next to “select an option”.

I have written in CSS :

label{
  display: block
}

But it does not work.

Could you please help me ?

I’ve edited your post 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 (’).

Use closing tag Select.

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