images - help

liunx

Guest
Hi,<br />
i just started putting up my site, and i can't seem to get images to load when i write the into the html for the index page... if i use image ready they will show up, but then i son't know how to edite the code to add links, mail, etc. in the image ready file, i just want to get one jpeg to load as the background but i just get the little red x...what am i doing wrong?<br />
please help!<br />
thanks...<br />
<br />
oh this is the code a wrote...<br />
<html><br />
<title> automata industries </title><br />
<body background="automatatxt.jpg"><br />
<br><br />
<br><br />
<h4 div align= right> COMING SOON...</h4><br />
<br><br />
<br><br />
<h3 div align = left> contact:<a href=http://www.htmlforums.com/archive/index.php/"mail to: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->"></a></h3><br />
</body><br />
</html><!--content-->if you get the red x, you have the path or file name wrong<!--content-->Just to please giz I must remind you to use a doctype. You don't need to see it as anything else than a small snippet of code to put in the beginning of your code. Then, you should have a <head> tag which contains at least one <meta> tag, telling the browser which charset you are using (iso-8859-1 is good), and the <title> tag.<br />
<br />
Then, to the background picture. Check that the url is correct. background="automatatxt.jpg" requires the picture to be in the same directory as this file, is it? Is it spelled correctly?<br />
<br />
<h4 div align= right> means absolutely nothing, it's not valid HTML syntax. It should be splitted into two tags: <div align="right"><h4>... and remember to close the tags, too.<br />
<br />
The <a> link with the mailto shouldn't have any spaces in the href argument to work.<br />
<br />
Here's the corrected code:<br />
<br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
<html><br />
<head><br />
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"><br />
<title>automata industries</title><br />
</head><br />
<body background="automatatxt.jpg"><br />
&nbsp;<br><br />
<br><br />
<div align="right"><h4>COMING SOON...</h4></div><br />
<br><br />
<br><br />
<div align="left"><h3>contact:<a href=http://www.htmlforums.com/archive/index.php/"mailto:[email protected]"></a></h3></div><br />
</body><br />
</html><br />
<br />
Finally, try validating your code in W3's validator (<!-- m --><a class="postlink" href="http://validator.w3.org">http://validator.w3.org</a><!-- m -->) whenever you code HTML.<!--content--><h4 div align= right> ... </h4><br />
<br />
<h3 div align = left> ... </h3><br />
<br />
<br />
The div isn't necessary. The attribute values should also be "quoted".<br />
<br />
I would just do:<br />
<br />
<h4 align="right"> ... </h4><br />
<br />
<h3 align="left"> ... </h3><!--content-->
 
Back
Top