Skip to content
Sign upLog in

how to add button in html ?

Profile icon
RamBarabdeCoder

plz tell how to add it and then plz give codes and also any new thing you about buttons like color changing and many things in html language.

You are viewing a single comment. View All
Profile icon
InvisibleOne

In the HTML file

<button onclick="alert('You clicked me!');">Click Me!</button>

then in the css

button { padding: 15px; font-size: 10px; color: white; font-family: 'Trebuchet MS'; background-color: darkgrey; border-radius: 5px; border: 6px solid black; }

Something like that

Profile icon
RamBarabdeCoder