# HTML Button (`<button>` Tag)

## Introduction

Buttons are one of the most commonly used elements in HTML. They allow users to perform actions like submitting forms, logging in, searching, or navigating to another page.

In this article, you'll learn how to use the `<button>` tag with simple examples.

---

## What is the `<button>` Tag?

The `<button>` tag is used to create a clickable button on a webpage.

### Example

```html
<button>Click Me</button>
```

Output:

A button displaying **Click Me** will appear on the webpage.

---

## Button Types

### 1. Submit Button

```html
<button type="submit">
Submit
</button>
```

Used to submit a form.

---

### 2. Reset Button

```html
<button type="reset">
Reset
</button>
```

Clears all form inputs.

---

### 3. Normal Button

```html
<button type="button">
Click Here
</button>
```

Used for custom actions with JavaScript.

---

## Complete Example

```html
<form>

<label>Name:</label>
<input type="text">

<br><br>

<button type="submit">
Submit
</button>

<button type="reset">
Reset
</button>

</form>
```

---

## Benefits

- Makes websites interactive.
- Allows users to submit forms.
- Easy to customize using CSS.
- Improves user experience.

---

## Best Practices

- Use meaningful button text.
- Choose the correct button type.
- Keep buttons simple and visible.
- Avoid adding too many buttons on one page.

---

## Conclusion

The `<button>` tag is an essential HTML element used in almost every website. Whether it's submitting a form or performing an action, buttons make webpages interactive and user-friendly.

---

## FAQs

### 1. What is the `<button>` tag?

It creates a clickable button on a webpage.

### 2. What are the main button types?

`submit`, `reset`, and `button`.

### 3. Can buttons be styled?

Yes. Buttons can be styled easily using CSS.

### 4. Where are buttons used?

Forms, navigation menus, login pages, shopping websites, and many other web applications.

---

## What's Next?

In the next article, we'll learn about **HTML Semantic Elements**, which help create well-structured and SEO-friendly webpages.
