468,234 Members | 1,579 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,234 developers. It's quick & easy.

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:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <form action="...">
  6. <p>Subskrybuj nasz biuletyn informacyjny</p>
  7. <input type="text" name="email" >
  8. <input type="image" src="www/subscribe.png" alt="Submit" width="100" height="20">
  9. </form>
  10. </body>
  11. </html>
Link to picture: <removed>
Link to site i created - <removed>

Thank you in advance for your help! :)
Jun 30 '20 #1
2 2158
9,033 Expert Mod 8TB
The SRC attribute should contain the link to the picture you want displayed, i.e. one of those links I had to remove
Jun 30 '20 #2
84 64KB

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:

Jul 1 '20 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by C. Sengstock | last post: by
reply views Thread by Juna | last post: by
3 posts views Thread by jx2 | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.