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>
Troy III commented: solved threads need to be marked as solved -2

Recommended Answers

All 4 Replies

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.

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.