gongpex Posted September 26, 2012 Share Posted September 26, 2012 Hello everyone, Please read this simple code : <form name="" action="" method="post"><input type="submit" value="submit" /> //or<button>SUBMIT</button></form> Usually people using <input > tag to create "SUBMIT" button or using <button></button> to create it, like on above. Q : If I using tag : <a href=""></a> can I create submit button ? Please answer Thanks Link to comment Share on other sites More sharing options...
niche Posted September 26, 2012 Share Posted September 26, 2012 Without a form, what would be the target of such a button? You might get more of what you need from javascript in this case. Link to comment Share on other sites More sharing options...
Ingolme Posted September 26, 2012 Share Posted September 26, 2012 There is no point in using an <a> element as a submit button. You can already style a submit button to look like whatever you want. Link to comment Share on other sites More sharing options...
gongpex Posted September 27, 2012 Author Share Posted September 27, 2012 Without a form I didn't said without form, just if <input> or button change to <a> I ask this question because this tag won't work on IE6 : <a href="/../"><input type="button" value="cancel" /></a> I can use <input type="image" src="" /> but I should create image for it, But alright this okay . Thanks for answer Link to comment Share on other sites More sharing options...
oknoorap Posted October 4, 2012 Share Posted October 4, 2012 anchor tag (<a>) can submit a form only if you're using javascript, I suggest you're using jQuery. CSS is only give you a display, not a function Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now