Adding Graphics to your page December 17, 2004 7:43 PM
So open up notepad again, and go to file open and open the page you created before. Remember to go to your folder you created and also change the bottom arrow from text documents to all files, or your html page will not show up to be opened
Once opened it will say:
<HTML> <HEAD> <TITLE>My website</TITLE> </HEAD> <BODY BGCOLOR="#000000"> <FONT FACE="Verdana" SIZE="5" COLOR="#551A8B"> Wow look I just created a webpage!!!<br><br> </FONT> <FONT FACE="Arial" SIZE="2" COLOR="#3A5FCD"> Look I know how to change Fonts!!<br> <b>Plus I can make it bold</b><br> <i>Or Italic</i>, <u>or even Underlined</u><br> <b><i><u>I can even do all three</b></i></u> </FONT> </BODY> </HTML>
Now add the image to your page! New code is in red!
<HTML> <HEAD> <TITLE>My website</TITLE> </HEAD> <BODY BGCOLOR="#000000"> <FONT FACE="Verdana" SIZE="5" COLOR="#551A8B"> Wow look I just created a webpage!!!<br><br> </FONT> <FONT FACE="Arial" SIZE="2" COLOR="#3A5FCD"> Look I know how to change Fonts!!<br> <b>Plus I can make it bold</b><br> <i>Or Italic</i>, <u>or even Underlined</u><br> <b><i><u>I can even do all three</b></i></u> </FONT><br><br> <IMG SRC="avatar11.gif"> </BODY> </HTML>
as long as the picture is in the same folder you do not need to add anything other then the file name. If it was in a different folder you would have to put the entire source. Double click the picture and at the top where it says address is its source. You would copy the entire address and use it. But as I said as it is in the same folder you do not need to do this.
Well now we will learn how to adjust the height, width, borders, description and alignment.
To change the images width and height you will use these attributes:
WIDTH= & HEIGHT=
To the <IMG> tag.
With borders you can add or remove a border around an image. Some iamges just automaticaly have borders. I hate it and so I always set it to 0 lol. For Borders just add this to the <IMG> tag:
BORDER=#
To add a description of the image, which will show up once the mouse moves over the image add this:
ALT="image name or whatever"
Alignment is where the image is placed on the page. So we will use:
<DIV ALIGN="center"></DIV> or <DIV ALIGN="left"></DIV> or <DIV ALIGN="right"></DIV>
So now you can change this on your page and put this in instead of just the plain <IMG SRC="avatar11.gif">
so your page would be:
<HTML> <HEAD> <TITLE>My website</TITLE> </HEAD> <BODY BGCOLOR="#000000"> <FONT FACE="Verdana" SIZE="5" COLOR="#551A8B"> Wow look I just created a webpage!!!<br><br> </FONT> <FONT FACE="Arial" SIZE="2" COLOR="#3A5FCD"> Look I know how to change Fonts!!<br> <b>Plus I can make it bold</b><br> <i>Or Italic</i>, <u>or even Underlined</u><br> <b><i><u>I can even do all three</b></i></u> </FONT><br><br> <div align="center"><IMG SRC="avatar11.gif" width="100" height="100" border="0" alt="beauty"></div> </BODY> </HTML>
Experiment with these if you wish by creating a new page within a blank notepad and using each one with different things. It takes some time to get the feel of it. Just remember to us the main tags:
Raven, How do you add a hard return after your photo tag? For instance, I want to place text directly below the image, but it starts beside the image.
[send green star]
[
accepted]
Yesterday I saw an article in Computing magazine about adding the sounds to the webpage. It seemed to be quite easy but then i tried it didn't work for me.
the codes they give are like that:
<script type="text/javascript"> <!-- var filename="DambrauskasRomas_Vejas 8959.mid" ; if (navigator.appName=="Microsoft Internet Explorer") document.writeln (<bgsound scr="+filename+" ); else if (navigator.appName=="Netscape") or (navigator.appName=="Opera") document.writeln (<embed scr="+filename+" autostart="true"hidden="true">); //--> </script>
All ( ; ) and + signs were printed in grey so I thought they are unneccesary (but I tried all ways: with and without these signs)
But I didn't understand why some words are in blue and some in black. They also said there should be <bgsound scr="DambrauskasRomas_Vejas 8959.mid" as well but they give the filename in the code just once (no explanation why )
They said it's possible to use any WAVE or MIDI files one has on his computer and even gave some Internet addresses where you can download them from. They also said it's possible to record and add your own voice message the same way.
I was very excited to hear that but as I said I couldn't add even a ready music file