Question about element attributes

Hey, I’m currently on the HTML curriculum, and learning and getting used to all the elements.

I understand how elements work, I have some trouble with certain attributes, like the “value” on input elements. I know ID is to tie them to their label, and name is used to group them and set whether you can choose multiple options, but I can’t understand what “value” does. I’ve looked it up and all I could find was “sets the value of the element”, which doesn’t help. Is it something I should just keep using as instructed, and will be covered on later lectures?

Hello @andreou.konstandinos !

Welcome to the FCC Forum and Community!

I hope this link will help to answer your question and provide the values that are available for the attribute.

Happy coding!:blush:

you should use it yes, the value attribute is how you get the value of the form element programmatically, it’s quite important, you will learn more about it when you learn to interact dynamically with the page through code

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.