Help with writting HTML please?
I have three questions really.
1. What is wrong with this code. Im trying to make a link to Google
<A HREF="http://www.google.com">Google</A>
2. Im trying to insert an image onto my webpage. I have both the image and the html file in the same folder but its not working. The image name is "Gorilla" and its a "jpeg" so not sure if i need to put "Gorilla" or "Gorilla.jpeg"
<p> Lowland Gorilla <img src="picture.jpg"></img> </p>
3. How do i make an image my background?
1.) <a href="http://www.google.com/" title="Google">Google</a>
2.) Make sure you have the correct name for your image along with the extension. Use lowercase letters: gorilla.jpg.
<div id="container"><img src="gorilla.jpg" alt="Gorilla" title="Gorilla"></div>
There is no closing tag for the image tag. If you have a XHTML 1.0 Strict document type, then you need to close all tags that don’t use closing tags like this:
<div id="container"><img src="gorilla.jpg" alt="Gorilla" title="Gorilla" /></div>
Be sure you put a space in front of the " / ".
3. I’m am going to take it you have a non-tileable image that you want as your page’s background image. I’m gonna assume you want the page contents to scroll over the image without image moving. I’m also assuming that your image is large enough for a decent bg image:
<head>
<style type="text/css">
body {
background: #fff url(image_name.jpg) no-repeat center fixed;
}
</style>
</head>
That’s the basic way.
Ron
October 20th, 2009 at 6:50 pm
1. href isnt caps
2. picture needs to be switched to gorilla.jpg
3. <bg=img src="insertimg.jpg">
References :
October 20th, 2009 at 7:10 pm
1. That looks good.
2. <img src’"Gorilla.jpeg" />
3. background is best altered by using a CSS. Find a turtorial on CSS and modify a background tag. This is to prevent your <body> tag from becoming too long to easily read.
References :
October 20th, 2009 at 7:22 pm
1. Nothing, if you want to link to the search page…?
2. .jpg … A better form would be, to be sure you place "alt" and "height" and "width" attributes (so the browser will know in advance what space to reserve, and so there will be text in case the image doesn’t load…) and to omit the closing tag and instead place a closing slash. Hence:
<img src="gorilla.jpg" alt="This is a gorilla" height="54" width="54" />
3. Use css. One way is, in the <head> section, place:
<style type="text/css">
body { background-image: url("whatever.png"); background-position: center center; background-repeat: no-repeat; background-attachment: fixed; }
</style>
References :
October 20th, 2009 at 7:37 pm
1.) <a href="http://www.google.com/" title="Google">Google</a>
2.) Make sure you have the correct name for your image along with the extension. Use lowercase letters: gorilla.jpg.
<div id="container"><img src="gorilla.jpg" alt="Gorilla" title="Gorilla"></div>
There is no closing tag for the image tag. If you have a XHTML 1.0 Strict document type, then you need to close all tags that don’t use closing tags like this:
<div id="container"><img src="gorilla.jpg" alt="Gorilla" title="Gorilla" /></div>
Be sure you put a space in front of the " / ".
3. I’m am going to take it you have a non-tileable image that you want as your page’s background image. I’m gonna assume you want the page contents to scroll over the image without image moving. I’m also assuming that your image is large enough for a decent bg image:
<head>
<style type="text/css">
body {
background: #fff url(image_name.jpg) no-repeat center fixed;
}
</style>
</head>
That’s the basic way.
Ron
References :
Web Designer
http://PayneLessDesigns.com/