This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-04 11:16:23

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

HTML Question...

I'm learning a little bit of HTML for a website I'm making. I made an img tag, and it won't show the picture.

Code:

<html>
<title>Incredifying</title>
<img src="/IncredifyingDesktop.jpg" />
</html>

Last edited by echs (2011-07-04 13:01:53)


http://i45.tinypic.com/35m4llw.gif

Offline

 

#2 2011-07-04 11:36:00

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: HTML Question...

bump


http://i45.tinypic.com/35m4llw.gif

Offline

 

#3 2011-07-04 11:59:03

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: HTML Question...

Is that image in the directory with the HTML file?


IHeartGaming

Offline

 

#4 2011-07-04 12:05:45

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: HTML Question...

IHeartGaming wrote:

Is that image in the directory with the HTML file?

No, what does that mean?


http://i45.tinypic.com/35m4llw.gif

Offline

 

#5 2011-07-04 12:07:03

puppetadventurer
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: HTML Question...

In think you need a "/" at the start of the name of your image.


3

Offline

 

#6 2011-07-04 12:42:46

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: HTML Question...

echs wrote:

IHeartGaming wrote:

Is that image in the directory with the HTML file?

No, what does that mean?

It needs to be in the same folder or else you have to use the complete path.


Posts: 20000 - Show all posts

Offline

 

#7 2011-07-04 12:48:46

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: HTML Question...

puppetadventurer wrote:

In think you need a "/" at the start of the name of your image.

I edited that in, but it still didn't help.


http://i45.tinypic.com/35m4llw.gif

Offline

 

#8 2011-07-04 12:50:56

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: HTML Question...

Edit: Now it works!
EDIT: NOW I made a folder named HTML and put the image and the document into it. It still only works with the full path.

Last edited by echs (2011-07-04 13:01:00)


http://i45.tinypic.com/35m4llw.gif

Offline

 

#9 2011-07-04 12:55:21

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: HTML Question...

You also don't have to set the width and height.


Posts: 20000 - Show all posts

Offline

 

#10 2011-07-04 13:09:26

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: HTML Question...

Okay, now how do I make the image when clicked go to the actual content?


http://i45.tinypic.com/35m4llw.gif

Offline

 

#11 2011-07-04 13:13:58

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: HTML Question...

Put an <a> tag around the <img> tag like this:

Code:

<a href="yoururlhere.html"><img src="/IncredifyingDesktop.jpg" /></a>

Yawn.

Offline

 

#12 2011-07-04 15:35:44

echs
Scratcher
Registered: 2010-03-18
Posts: 1000+

Re: HTML Question...

How do you get a small icon in the address bar?


http://i45.tinypic.com/35m4llw.gif

Offline

 

#13 2011-07-04 15:36:37

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: HTML Question...

echs wrote:

How do you get a small icon in the address bar?

Upload a file called "favicon.ico" into the site's main directory.


Posts: 20000 - Show all posts

Offline

 

Board footer