Button with picture doesn't work why?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sucxces
    New Member
    • Jun 2020
    • 1

    Button with picture doesn't work why?

    Hello everyone! I want to make this effect -

    but with PNG picture. I created on desktop folder - www. In this folder i have picture (subscribe.png) and html file.
    here is my code:
    Code:
    <html>
    <head>
    </head>
    <body>
    <form action="...">
    <p>Subskrybuj nasz biuletyn informacyjny</p>
    <input type="text" name="email" >
    <input type="image" src="www/subscribe.png" alt="Submit" width="100" height="20">
    </form>
    </body>
    </html>
    Link to picture: <removed>
    Link to site i created - <removed>

    Thank you in advance for your help! :)
    Last edited by Banfa; Jun 30 '20, 03:24 PM. Reason: Removed all external links
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    The SRC attribute should contain the link to the picture you want displayed, i.e. one of those links I had to remove

    Comment

    • AjayGohil
      New Member
      • Apr 2019
      • 83

      #3
      Hi,

      Your code was right but in src attribute you should use appropriate path.use absolute path or relative in src attribute.Check location of image.

      for Path refer folloeing path:

      W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

      Comment

      Working...