<fieldset>
<legend>Account type (required)</legend>
<label for="personal-account"><input type="radio" name="account-type" checked /> Personal</label>
<label for="business-account"><input type="radio" name="account-type" /> Business</label>
</fieldset>
You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
Use personal-account
, and business-account
as values for the respective id
attributes.
So think of <label></label>
as title or header of an <input />
, where u use an
input it is a better practice to use an label linked to it. So the way that it works is to give an name to every input u created, and refer to it in a label using the for
attribute as u did, so the name of input and the label attached to it should be the same.
Keep it up, and good luck.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.