Click to See Complete Forum and Search --> : Old Man Newbie Frustrated


JerryB
10-26-2005, 03:03 AM
Hi Everybody

I am an old man of 52 and a newbie to html.Getting frustrated slowly or just not understanding.
I have images 1 thru 7 how do I insert them on top of the page on top of the background color.Can anyone give me an example.
My second question would be how to go about putting a banner below the images. Someone told me to use a css file along with the banner. Is that correct.
I have been looking at source code on some website and was wondering why are so many index.htm, index.html, index-1.html,and etc. Do you use index file instead of "example business.html" and etc.
Thanks in case I get a reply

Fang
10-26-2005, 05:26 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Basic HTML</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<style type="text/css">
html, body {
margin:0;
padding:0;
border:0;
font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size:100%;
color:#000;
background:#ff9 url(bgImage.jpg) repeat; /* could also have an image on the background */
}
h1 {
margin:0;
padding:10px;
text-align:center;
font-family:Lithograph, 'Tempus Sans ITC', Arial, Helvetica, sans-serif;
font-size:2.5em;
color:#fff;
background:#9cf;
}
</style>

</head>
<body>
<!-- images on one line to avoid gaps appearing between them -->
<img alt="" src="myImage.png" height="20" width="100"><img alt="" src="myImage.png" height="20" width="100"><img alt="" src="myImage.png" height="20" width="100">
<h1>business as usual</h1>
</body>
</html>
Read the tutorials here: W3 Schools (http://www.w3schools.com/default.asp)
The index document is usually the default document in the folder. If a user surfs to your site, i.e. http://www.mybusiness.com/, the index document will be automatically loaded. It is advisable to have index.html as the starting page for your site.

JerryB
10-28-2005, 03:03 PM
Hi Fang,
thanks for the help. what happens if your images are different sizes does that matter?
Thanks again
JerryB

Mr J
10-29-2005, 02:38 PM
If you leave out the width and height attributes from the img tags the images will be shown at their default sizes

JPnyc
10-29-2005, 02:59 PM
Jerry, index is usually the default name for your homepage with most hosts. That will be the page the server will send when your domain is accessed.