HTML Buttons


Go to main Page

Buttons in HTML

  1. To create a button in HTML document we use <button></button> tag.
  2. <button></button> tag defines clickable button.
  3. Inside a <button> element you can put text (and tags like <strong>, <br>, <img>, etc.). That is not possible with a button created with the <input> element!
  4. You can style button in CSS for now we are just learning HTML.

<button style=" color:white;outline:none;background-color:orange; border:0px;">Click me</button>
  

You can add more styling in CSS ,for now just leave it.