Button

Button

Button also performs a important part in a website like open prompt box, visit to another webpage (as links does), interact to any function, submit a form, save , delete, download, etc. We can add buttons by two types.

Button Tag

<button type="button"> Click </button>

Input Type

<input type="button" value="Click">

Anchor Tag

Basically anchor tag used to link webpages, perform certain task, also we can use this tag as a button. We can make this link as button using CSS.

<a class="button" href="#"> Read more </a>
.button {
    padding: 8px 28px;
    font-size: 20px;
    border: 2px solid #000;
    color: #fff;
    background: #000;
    line-height: 14px;
}