how to insert button in HTML
Answers
Answered by
29
Answer:
The <button> tag defines a clickable button.
Inside a <button> element you can put text (and tags like <i>, <strong>, <br>, <img>, etc.). This is not possible with a button created with the <input> element!
Tip: Always specify the type attribute for a <button> element, to tell browsers what type of button it is.
Tip: You can easily style buttons with CSS! Look at the examples below or visit our CSS Buttons tutorial.
Answered by
20
Answer:
Add CSS:
To get the "text button" look, we remove the default background color and border:
Example
.btn {
border: none;
background-color: inherit;
padding: 14px 28px;
font-size: 16px;
cursor: pointer;
display: inline-block;
}
Similar questions