Jump to content

Why does this HTML code not work?(the image doesnt show up, theres just a red cross:P)

<a href="info.htm"><h1 align=left><img src="Images/data button.png"></a></h1>

 

Also your closing tags are out of order.

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

If there's just a red cross, it means that the image doesn't exist and that you're using Internet Explorer. To resolve the 2nd issue, get Firefox or Chrome and you will find they are a lot more web-dev friendly. To resolve the 1st issue, make sure there is an image titled data button.png within images within the directory that your page is in, and you should always escape spaces in a url so it becomes src="images/data%20button.png". This could be your issue, but some browsers just warn you and get on with it. See my other point.

HTTP/2 203

Link to comment
Share on other sites

Link to post
Share on other sites

If there's just a red cross, it means that the image doesn't exist and that you're using Internet Explorer. To resolve the 2nd issue, get Firefox or Chrome and you will find they are a lot more web-dev friendly. To resolve the 1st issue, make sure there is an image titled data button.png within images within the directory that your page is in, and you should always escape spaces in a url so it becomes src="images/data%20button.png". This could be your issue, but some browsers just warn you and get on with it. See my other point.

Internet explorer is better for web development, just saying.

Link to comment
Share on other sites

Link to post
Share on other sites

Internet explorer is better for web development, just saying.

Not really... In Firefox you have Firebug (and thousands of other web dev addons, along with chrome), and generally Firefox and Chrome are more W3C compliant and therefore give a better representation of what the other browsers will do with the same code.

HTTP/2 203

Link to comment
Share on other sites

Link to post
Share on other sites

Not really... In Firefox you have Firebug (and thousands of other web dev addons, along with chrome), and generally Firefox and Chrome are more W3C compliant and therefore give a better representation of what the other browsers will do with the same code.

Firefox and Chrome do a much better job at hiding problems that you will need to fix for other browsers anyway, so you may as well be able to see them by using something like IE.

At the end of the day if you're doing webdev stuff you will be using all of them so it doesn't really matter.

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×