SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: input or button

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    input or button

    Could anyone please tell me what's the difference between
    Code:
    <input type="button" />
    <button></button>
    Thanks

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,317
    Mentioned
    461 Post(s)
    Tagged
    8 Thread(s)
    You can do a little more with <button> that with <inputs>, like put text and even HTML between the opening and closing tags. It seems it's more often used with JS, though. Here's some info on the button element:

    http://reference.sitepoint.com/html/button


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •