?
Solved

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

Posted on 2012-03-13
4
Medium Priority
?
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

762 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