very noob HTML question

DragstkDragstk Syracuse, N.Y.
edited April 2004 in Internet & Media
For the past few days, I have been teaching myself HTML. I actually happy with my progress, but now I'm stumped.

I can get images to show up, if they are in the same file as my HTML document. But I can't get images to show up, if the image is stored some place else on my computer.

what is the command line to do this?

Also, anybody know any good on line tutorials on HTML?

humbly;
Dragstk

Comments

  • KwitkoKwitko Sheriff of Banning (Retired) By the thing near the stuff Icrontian
    edited April 2004
    You need to put the path where your pic is located in your image tag. So if your document is in /web and your images are in /web/images you do the following:
    <img src="/images/blah.jpg" />
    

    By the way, are you doing this on a home PC or are you uploading to a server?
  • a2jfreaka2jfreak Houston, TX Member
    edited April 2004
    Stupid question:

    Why do I see so many /> at the end of a tag? All reference material I see about tags show stuff like <img src="..."> but often when I view the souce of a page I see just what you did, Kwitko: <img src="..." /> Why? What purpose does the /> serve? I normally strip them out and the code works just fine.
  • DragstkDragstk Syracuse, N.Y.
    edited April 2004
    :woowoo: Thanks Mr. Kwitko, it worked! :respect: My problem was having all those < = \ " in the wrong place and order.

    I am doing this on my own home computer. Just trying to learn how to use HTML.
    Thanks again;
    Dragstk
  • KwitkoKwitko Sheriff of Banning (Retired) By the thing near the stuff Icrontian
    edited April 2004
    I do the / at the end of the tag because I'm used to coding in XHTML as opposed to plain HTML. It's a stricter standard that makes sure tags are nested correctly and your code is cross-platform compatible. Most browsers still don't follow it completely, but I thought I would get myself into the habit of it anyway. If you have a tag- such as img or br- that doesn't open or close, you end it with />.
Sign In or Register to comment.