+ 2
placeholder and name are different attributes. An input with a type such as search, password, text e.t.c can have the placeholder attribute which will provide a hint within the textbox with whatever value the placeholder is set to. Input elements can also have a name attribute which can act to reference that element. Since they are different they can also have both attributes.
https://www.w3schools.com/html/html_form_attributes.asp
https://www.w3schools.com/tags/att_input_name.asp



