<button> HTML Tag
In this article I will discuss <button> tag of HTML
The HTML button
tag is used for creating a button within forms.The <button> tag defines a push button.Inside a <button> element we can put content, like text or images. This is the difference between this element and buttons created with the <input> element.
Example
<html>
<head>
<title></title>
</head>
<body>
<h3 style="color: Red">
Simple Button</h3>
<button type="button">
Click Me!</button>
<h3 style="color: Blue">
Image Button</h3>
<button name="quackitButton" value="Submit" type="button">
<img src="images/empty_star.png" alt="Empty_Star" />
<br />
Empty Star</button>
</body>
</html>
|
Output
Simple Button
Image Button
Ask Your Question
Got a programming related question? You may want to post your question here