HTML Index page help.

Associate
Joined
17 Jun 2005
Posts
847
Location
Switzerland
Here's my code:

<html>
<head>
<title>Lexicon Homes</title>
</head>
<body bgcolor="F0E2C9">
<br /><br /><br /><br /><br /><br /><br /><br />
<center>
<a href="http://www.lexicon.moonfruit.com"><img src="http://img135.imageshack.us/img135/4002/lexiconlogotj1.gif" border="0" alt="Image Hosted by ImageShack.us" /></a>
</center>
</body>
</html>

How do add text to appear just below the logo saying 'Enter Site Here' where the word 'here' is a link to www.lexicon.moonfruit.com???????

Many thanks for the help......MUCH appreciated.
 
Code:
<html>
<head>
<title>Lexicon Homes</title>
</head>
<body bgcolor="F0E2C9">
<br /><br /><br /><br /><br /><br /><br /><br />
<center>
<a href="http://www.lexicon.moonfruit.com"><img src="http://img135.imageshack.us/img135/4002/lexiconlogotj1.gif" border="0" alt="Image Hosted by ImageShack.us" /></a>
<br/>
<br/>
Enter Site <a href="http://www.lexicon.moonfruit.com">Here</a>
</center>
</body>
</html>

Should do it
 
Do you really want to start your website design like this though?

The code is very old school. Perhaps you should read up on CSS. The Center tag was deprecated in HTML version 4.01 back in 1999!

XHTML 1.0 Transitional Compliant Version:-
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb">
<head>
	<title>Lexicon Home</title>
	<style type="text/css" media="screen">
		body {background: #f0e2c9; color: #000;}
		#container {margin-top: 250px; text-align: center;}
	</style>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div id="container">
	<p>
		<a href="http://www.lexicon.moonfruit.com">
			<img src="http://img135.imageshack.us/img135/4002/lexiconlogotj1.gif" width="242" height="66" alt="Lexicon Home Ltd" />
		</a>
	</p>
	<p>
		<a href="http://www.lexicon.moonfruit.com">
			Enter Site Here
		</a>
	</p>
</div>
</body>
</html>

Ideally you should have your CSS in a separate file, but I've left in here to illustrate how it works.
If you any questions on what I have done here, feel free to ask.
 
Last edited:
Back
Top Bottom