1.11M Members

input tags with css programming

 
-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>
 
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.

 
0
 

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

 
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.

 
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 six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: