Jump to content

Uploading


HTML5

Recommended Posts

up to now I have done all my XHTML 1.0 and CSS on my computer with Notepad++But now I want to make a site but I am at a loss on how to upload images on the server because I can no longer do:<img src="arandompicture.bmp" alt="something here" height="256" width="192"/> because the source is from my local computer's hard drive and who ever is visiting my site won't be able to see it.I feel sorta stupid for not knowing how to do this

Link to comment
Share on other sites

opps! sorry for that double post internet was very slow where I was at :) and I clicked post more than once because it was not going throughanyways I solved my problem. I have to upload them through the file manager.and sorry for the bad grammar :) just doing this post fast so I can get going with my site

Link to comment
Share on other sites

the easiest way to ensure proper transportability of your sites is to use relative URL's. create a folder called website. Inside that put your HTML pages and your stylesheet(s). for your images, just create an folder inside this site folder called images. From then on, all your HTML/CSS/etc documents can just reference image by preceding the images filename with images/ (i.e. images/arandomimage.jpg). By making all paths relative to a root folder, rather than a specific destination (either on your PC or a host) you can just move the site folder as a whole and all the filepath's will remain consistent.

Link to comment
Share on other sites

  • 8 months later...
up to now I have done all my XHTML 1.0 and CSS on my computer with Notepad++But now I want to make a site but I am at a loss on how to upload images on the server because I can no longer do:<img src="arandompicture.bmp" alt="something here" height="256" width="192"/> because the source is from my local computer's hard drive and who ever is visiting my site won't be able to see it.I feel sorta stupid for not knowing how to do this
The example you gave is actually a relative filepath. If you keep it like this, just throw the image "arandompicture.bmp" in the same folder as the HTML file that is calling it. Like the above poster said though, it's good practice to create a separate directly like "images" or "media" for all your movies and images.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...