Donate SIGN UP

Html Code

Avatar Image
TheMacDonaldMan | 18:06 Sun 03rd May 2015 | Technology
10 Answers
I'm learning how to do small bits of coding on Notepad. I have an image I want to show, but when I load the page (locally) it just shows the parameters of the image and not the image itself. How can I fix that? This is the code:

Gravatar

Answers

1 to 10 of 10rss feed

Best Answer

No best answer has yet been selected by TheMacDonaldMan. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Did you know that if you right-click in a browser page and select "View page source" you can see the HTML for that page?

Bring up a page with a picture in it and right-click in the picture. Choose "Save as" and you can get the name of the picture-file.

If you go back to the source view you can "edit > find" the picture and see how it's been coded in HTML.
Unfortunately trying to post html code directly here won't work. If you want someone to have a look then replace any angle brackets with square brackets, or something, and change nothing else.
Question Author
[img src="MonsterTabs.jpg" width="624" height="142"]
Use Notepad++ Mac. You can run code directly from there.

One of the easiest ways of displaying an image is to create an "images" folder as a sub-folder, then point to your pic using something like this........

"
^^^ should have listened to Jim ^^^

[ }
I give up. :o(

I used square brackets as well ....................
Where is the photo in relation to where the page is?

eg if the page is in a folder called pages and the file is in a folder called photos then you need to make sure the pahe know where to find the photo

eg. img src="../photos/monster.jpg"
Mac, did you put in the < at the beginning of the line, and the > at the end?
Thanks Tuvok. That's what I was trying to say, only mine was "/images"
Question Author
Ah-ha, got it! My src command wasn't correct, didn't give it the proper direction

1 to 10 of 10rss feed

Do you know the answer?

Html Code

Answer Question >>