I was creating a website using html5 with django.I know that when action attribute is null in form it refers to the same url.So I tried it.But I cannot submit my action.So I used "#",instead of null in action attribute it worked.So I am confused about the two values in the attribute.So Can anybody tell me what is the difference between action="" and action="#" in html form tag
Asked
Active
Viewed 379 times
1 Answers
1
action="" will resolve to the page's address. action="#" will resolve to the page's address + #, which will mean an empty fragment identifier.
please check what do <form action="#"> and <form method="post" action="#> do?

Community
- 1
- 1

Pranay Bhardwaj
- 1,059
- 8
- 9