+ 1

Whats is the difference between <form> element and href?

8th Feb 2018, 10:56 AM
Hemant Sharma
Hemant Sharma - avatar
3 Respuestas
+ 41
href is used for redirecting people on your website to other parts of your website or to other websites. The href attribute specifies the URL of the page the link goes to.If the href attribute is not present, the <a> tag is not a hyperlink. Eg :- <a href="google.com">google</a> Form <form action="dg.php" method="post"> ....…............... </form> Forms are used to pass user-data to a specified URL.
8th Feb 2018, 11:27 AM
Elizabeth🌸
Elizabeth🌸 - avatar
+ 2
The biggest difference is that <form> is a tag and href is an attribute.
8th Feb 2018, 11:18 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
0
href is hypertext refrence i.e. it is used to make link and it is the attribute of <a>(anchor) but form is used to specify data and to store data
17th Feb 2018, 11:16 AM
NEVER Shown
NEVER Shown - avatar