can you post your code instead of a screenshot and a link to the step?
yeah I cna try
<fieldset>
<legend>What's your cat's personality?</legend>
<label for="loving">loving</label>
<input type="checkbox" id="loving">
</fieldset>
There’s another way to associate an input
element’s text with the element itself. You can nest the text within a label
element and add a for
attribute with the same value as the input
element’s id
attribute.
Associate the text Loving
with the checkbox by nesting only the text Loving
in a label
element and giving it an appropriate for
attribute.
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 (').
please post the link to the step
I belice this is the link
Ok, so you start with this input
:
<input id="loving" type="checkbox"> Loving
you should not delete or move anything, you need to add the label around the word Loving
Im kinda lost here what do I need to add around the ending of the code
I was able to figure it out Thanks
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.