Alguien puede ayudarme a empezar en el Diseño web responsivo.
En que le podemos ayudar?
Estoy aprendiendo y tengo la siguiente tarea
Step 55
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 only nesting the text Loving
in a label
element and place it to the right side of the checkbox input
element.
yo he resuelto así
<!-- <label for="loving"><input type="checkbox" id="loving"> Loving</label> -->
Y me sale el siguiente cartel
The text Loving
should no longer be located directly to the right of your checkbox. It should be wrapped in a label
element. Make sure there is a space between the two elements.
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 (').
you have nested both the text and the input element, you need to nest only the text
Ilenia gracias por su nayuda. tengo el texto Loving anidado al label y en realidad no se que hacer.
Lo resolví así
<input type="checkbox" id="loving"> <label for="loving"> Loving</label>
por fín dí en el blanco.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.