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
Solved

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

Posted on 2012-03-13
4
293 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 333 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 333 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 167 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Understanding mobile browsers 9 84
Problem with spacing columns on a row in a table 10 27
CSS: Making responsive table look nicer 7 31
Scroll 5 news at a time. 4 33
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

789 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