html Button tag


Html Button Tag

   1]  <Button> tag creates a  clickable  button.
   2]  The  type="button" attribute specifies the button.
   3]  The text  "click Me" content of the button.
   4]  button can trigger java Script events / perform action defined the web page.

Html Button Tag

Example :-

<!DOCTYPE html>
<html>
    <head>
        <title>button tag</title>
    </head>
    <body>
        <h2>Html Button Tag </h2>
        <button type ="button" onclick="alert('hi friends')" >Click Me</button>
    </body>
</html>

Html Button Tag

Output :-

button tag  /output




related Post :-

about us page design template

php program print inverted pyramid star pattern in php

css id selector

Comments

Popular posts from this blog

What Is CSS Text Color in 2026

CSS Padding Property Explained

CSS Outline Color Property in 2026