+ 1
Whats is the difference between <form> element and href?
3 Answers
+ 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.
+ 2
The biggest difference is that <form> is a tag and href is an attribute.
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