By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,063 Members | 869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,063 IT Pros & Developers. It's quick & easy.

Button with picture doesn't work why?

P: 1
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>
  12.  
Link to picture: <removed>
Link to site i created - <removed>

Thank you in advance for your help! :)
1 Week Ago #1
Share this Question
Share on Google+
2 Replies


Banfa
Expert Mod 5K+
P: 8,949
The SRC attribute should contain the link to the picture you want displayed, i.e. one of those links I had to remove
1 Week Ago #2

P: 53
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:

https://www.w3schools.com/html/html_filepaths.asp
1 Week Ago #3

Post your reply

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