Solved

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

Posted on 2012-03-13
4
286 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
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 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 style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now