1,105,406 Community Members

input tags with css programming

lanhaibibo
Newbie Poster
4 posts since Jun 2013
Reputation Points: -2 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
-1
 

Hey, Everyone, I am new to CSS programming. SO have some basic questions about the input tag in CSS in the following example.

SO, <input type="submit" value="Submit">
does not mention anything about a button, how do you even know that it defines a button ?

Thanks in advance.

<!DOCTYPE html>
<html>
<body>

<form action="demo_form.asp">
First name: <input type="text" name="FirstName" value="Mickey"><br>
Last name: <input type="text" name="LastName" value="Mouse"><br>
<input type="submit" value="Submit">
</form>

<p>Click the "Submit" button and the form-data will be sent to a page on the server called "demo_form.asp".</p>

</body>
</html>
Member Avatar
Troy III
Practically a Posting Shark
891 posts since Jun 2008
Reputation Points: 174 [?]
Q&As Helped to Solve: 119 [?]
Skill Endorsements: 10 [?]
 
0
 

That's because its not a button its a submit control which happens to be rendered to appear like a buton for user convenience sake.

lanhaibibo
Newbie Poster
4 posts since Jun 2013
Reputation Points: -2 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
0
 

Thanks very much. Troy III. Thanks again ~ Appreciate your time and attention.

Member Avatar
JorgeM
IT Addict
6,414 posts since Dec 2011
Reputation Points: 581 [?]
Q&As Helped to Solve: 963 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
0
 

Of course, with the use of style sheets (CSS), you can change the look of the input element. Without manual styling, the browser will applying its own default styles. That's why input elements may look a little different depending on the browser.

Member Avatar
crescendo
Junior Poster in Training
80 posts since May 2013
Reputation Points: 12 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

I am agree that submit is a control not a button.Submit used to submit a form whereas button element dont submit a form on its own.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: