Attribute Name , what is its role?

my question may sound stupid. but i couldn’t understand the role of the attribute ( name) in the tag input, can anybody clarify more ? thank you :slight_smile:

name is used to specify which form input when dealing with the form data (either on the backend with JS/PHP, etc or on the frontend with JS). name also groups radio buttons together; that’s how it knows which sets of buttons can only have 1 answer.

3 Likes

thank you so much all understood now , it is more a server side , when you are beginner all you focus on is the front-end path

1 Like