Hello everybody I am new in this area I have many questios

  • edisongh_02
  • Newbie
  • Newbie
  • edisongh_02
  • Posts: 7

Post 3+ Months Ago

I want to know:
-How to upload a picture in my website using CSS & HTML using this Links as example?
Code: [ Select ]
<html>
<head>
<title>Hello World</title>
</head>
<body>
<p>This is some sample text. Type whatever you would like here.</p>
 
<img src="images/someimage.jpg" width="100" height="50" alt="Some Image">
 
</body>
</html>
  1. <html>
  2. <head>
  3. <title>Hello World</title>
  4. </head>
  5. <body>
  6. <p>This is some sample text. Type whatever you would like here.</p>
  7.  
  8. <img src="images/someimage.jpg" width="100" height="50" alt="Some Image">
  9.  
  10. </body>
  11. </html>

-How to upload a video in the website using CSS& HTMLUsing the same link?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

You don't "upload" a picture using CSS or HTML. You reference it. It must reside in the address you've specified, either relatively or absolutely.

Addressing:
If an image exists (someimage.jpg) at http://www.domain.com/ in a folder called "images" it can be accessed by the absolute address http://www.domain.com/images/someimage.jpg.

If an HTML file exists at http://www.domain.com/ it can reference the same image using the relative address images/someimage.jpg
  • edisongh_02
  • Newbie
  • Newbie
  • edisongh_02
  • Posts: 7

Post 3+ Months Ago

Sorry this answer is a little complicated for me. Could you give me an easier answer with more details please?
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

edisongh_02 wrote:
Could you give me an easier answer with more details please?


That would be difficult. I don't really understand what your current understanding is.

Let's try this...

You posted some HTML above. In the HTML you've specified a relative address (images/someimage.jpg) for an image.

Let's say your HTML file (somepage.html) is in a foler on a web server called "root". Therefore, within the "root" folder, you would need a sub-folder called "images". Within the "images" folder you would need a file called "someimage.jpg".

So, when I open "somepage.html" with my browser, it is able to locate "someimage.jpg" because of their relative locations.
  • ayelletkod
  • Novice
  • Novice
  • ayelletkod
  • Posts: 17

Post 3+ Months Ago

Usually if your a rookie your trying to make web pages using your own computer as a host. is that the case? because if it is, you have to make sure your browser permits showing pictures at all. than you should do all the other things - locate and specify location relatively atc.
You can also try to specify a web picture location - link would lead to a page already exists - and see what happens. cause maybe there are some problems with your browsers preferences.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 38 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.