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>

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

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

Votes + Comments
solved threads need to be marked as solved
5 Years
Discussion Span
Last Post by crescendo

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.


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.


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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.