Linked Questions

91 votes
4 answers
36k views

Considering the following 2 lines of code (copied from w3schools.com > "HTML < label > for Attribute"): <label for="male">Male </label> <input type="radio" name="sex" id="male" /...
user328414's user avatar
  • 1,230
0 votes
3 answers
278 views

<label for="male">Male</label> <input type="radio" name="gender" id="male" value="male"><br> I was trying to Learn WP widgets creation. on the Tutorial websites this was ...
WordCent's user avatar
  • 727
-5 votes
1 answer
169 views

I'm currently learning HTML and I am having difficulties understanding the for attribute of <label>. Can anyone clarify this to me with examples?
Sopan Shinde's user avatar
32 votes
5 answers
114k views

I'm trying to put a checkbox form in a dropdown like this: <ul> <li class="dropdown"> <a href="#" data-toggle="dropdown" class="dropdown-toggle"> Dropdown Form<b ...
J.Zil's user avatar
  • 2,459
43 votes
4 answers
12k views

I've noticed that a HTML label tag doesn't need the 'for' attribute when you put your input element into the label element: <label><input type="text">Last name</label> But I was ...
Raapwerk's user avatar
  • 629
4 votes
7 answers
35k views

I have the following set of checkboxes: <ul class="checkbox_list"> <li><input name="mensajes[receptores_list][]" type="checkbox" value="5" id="mensajes_receptores_list_5" />&...
Jorge H's user avatar
  • 352
13 votes
2 answers
11k views

I don't know the meaning of for="inputEmail3", seems its same as id, what is it for? Can I just remove for="inputEmail3" ? <form> <div class="form-group row"> <label for="...
Sato's user avatar
  • 8,730
4 votes
5 answers
9k views

here's my situation: So I'm trying to toggle a sidebar by clicking another div. It's a 100% height sidebar that is fixed to the right side of the viewport. Essentially I am trying to wrap a 300px div ...
Betafresh Media's user avatar
1 vote
6 answers
10k views

Currently I'm just using jQuery to have a checkbox and a text, with the text to change after the checkbox is ticked, but I'm trying to work it so that the box OR text can be clicked and the result is ...
50dollanote's user avatar
1 vote
2 answers
12k views

I'm trying to implement time table (for online record to a doctor). My code is: <div class="container"> <div class="record-container"> <div class="time-container" style="...
tserge's user avatar
  • 23
2 votes
1 answer
5k views

I want to apply css style(link is below) to my Django boolean form in my template. https://proto.io/freebies/onoff/ I did something like this. The style is applied to the checkbox but the checkbox ...
smchae's user avatar
  • 1,105
0 votes
2 answers
3k views

I found some really weird things I can't explain. I tried making custom checkboxes using CSS by following this codepen. I copied most of it, but for some reason it didn't work. After checking my code,...
Dimitri Mestdagh's user avatar
0 votes
3 answers
3k views

I am trying to ensure my webapp is HTML5 compliant and by doing so I discovered an HTML5 error. I am currently using the following code: <label><div class="someClass"><input type="...
James's user avatar
  • 262
1 vote
1 answer
2k views

I have this html form <form action="insert.php" method="post" enctype="multipart/form-data">> <p> <label for="covername">Cover Artwork:</label> <input type="file"...
99ajohnson's user avatar
0 votes
3 answers
3k views

I want to be able to click on the label to check my element without showing the checked so I wrote this: input[type="checkbox"] { display: none; } But when I click it doesn't work. It only works ...
Léo-Paul Dubourg's user avatar

15 30 50 per page