?
Solved

What is the difference between  a <button> tag and a <input> tag when created

Posted on 2012-03-13
4
Medium Priority
?
303 Views
Last Modified: 2012-08-13
What is the difference between  a <button> tag and a <input> tag when created
0
Comment
Question by:1030071002
  • 2
4 Comments
 
LVL 4

Assisted Solution

by:Paul-B
Paul-B earned 1332 total points
ID: 37718173
button is just that.. its creates a button that when clicked performs a predetermined operation. Like going to a link or submitting a form.. etc. Input tags actually allow the user to provide information like a number or name.. something like that in order to perform some operation with that data.. usually :)
0
 

Author Comment

by:1030071002
ID: 37718266
is there such a thing as a input tag button
0
 
LVL 4

Assisted Solution

by:Paul-B
Paul-B earned 1332 total points
ID: 37718341
Not that I know of but you could embed the input in a button.. like so..

<button type="button">First name: 
<input type="text" name="FirstName" value="Mickey" /></button>

Open in new window

0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 668 total points
ID: 37720865
<input type="button" name="something" value="??">  is valid. The difference between that and <button> is that the input will send a name value pair to the server when the form is submitted.


Cd&
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question