BUTTONS in HTML

 <!DOCTYPE html>

<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Button</title>
  </head>
  <body>
    <form action="//:source">
      <div>
        <label for="username">enter username: </label>
        <input type="text" id="username" placeholder="uesrname" />
      </div>
      <div>
        <label for="password"> Enter password:</label>
        <input type="password" id="password" placeholder="password" />
      </div>
      <!-- BUTTON -->
      <button>submit</button>
      <div>

        <!-- button types -->
        <button type="Submit">submit</button>
      </div>
      <div>
        <button type="button">hello</button>
      </div>
      <div>
        <button type="reset">reset</button>
      </div>

      <!-- BUTTON USING INPUT -->
       <input type="submit">
       <input type="submit" value="click me"/>
    </form>
  </body>
</html>

Comments

Popular posts from this blog

TextArea

unordered list with image link

Select input form