You have a lot going on in a way that I am not sure why you have it that way. So firstly, I will just address the textarea. You need to get rid of all that space that is between the > and there should be no space between those two and then the placeholder should show
Now, I am not sure why but is there a reason you have all of this inside your label element? Also you never close your select element here
<label> What is your favorite feature of freeCodeCamp?
<select id="dropdown2">
<option value=" " >select </option>
<option value="1" >Challenges </option>
<option value="2" >Projects </option>
<option value="3" >Community </option>
<option value="4" >Open Source </option> </label>
And the reason your checkbox is so far to the right is because of the style you put on it. All that margin-left is going to push it right. If you are trying to get your checkbox and text on the same line then you need you to look at what you are using for display in your style…
alright so i closed the select, and i shouldn’t be putting the dropdown code lines in a label? why is that?
and i deleted all the extra space, the placeholder still isn’t showing
the checkbox and the text arent coming in the same line, when i use inline property they get merged with the “what would you like to see improved?” and when i use block, the checkbox and text come in 2 different lines
" The <label>HTML element represents a caption for an item in a user interface." A label is just that, a label that represents text for an input or a select element. I dont see any benefit of having all of that inside your label when you can just do. After copying your code into a codepen abd seeing everything I am assuming you do it to have everything on the same line? I dont think theres anything invalid about it, but I would do it in the example below and then use css if you want in to the same line. Anyway, its your code and your choice so I will leave it at that
<label> What is your favorite feature of freeCodeCamp? </label>
<select id="dropdown2">
<option value=" " >select </option>
<option value="1" >Challenges </option>
<option value="2" >Projects </option>
<option value="3" >Community </option>
<option value="4" >Open Source </option>
</select>
As I said earlier I put your code into a codepen and made the changes I described the in my previous post and it all works fine. I do have to mention that I took this line
<label> What would you like to see improved?
<input type="checkbox" id="imp1" value="Front-end Projects">Front-end Projects
</label>
and changed it to
<label> What would you like to see improved? </label>
<input type="checkbox" id="imp1" value="Front-end Projects">Front-end Projects
Then I was able to get rid of the display style altogether. You can see all the changes I made here
yeah i was typing everything up with label so everything can be in a line, and also so everything could be together. But yeah it does make sense to not use it for this purpose if label is actually meant to represent text, I’ll keep this in mind, thanks, and i followed ur corrections and now the code works.
also since you went through the entire code, are there any other frivolous lines of code? or anywhere i need to make any sort of corrections? pls do tell me, thanks