Click here to Skip to main content
15,900,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So, once again I have a problem with my DOEC code (for those of you who have not seen my other question, it's just a website I'm creating). I'm trying to make a navigation section to go to other sections of my website for easy access to those sections, I've started with the sections I have done, and will move on to the other ones when I create them.

What I have tried:

this is my whole code so far
HTML
<!DOCTYPE HTML>
<html>

	<head>

	<title>Deep Ocean Entertainment Canada</title>
	
		<style>
		body{
			font-size:13pt;
		}
		.header{
			color: #ffffff;
			Background-image:url(https://www.azocleantech.com/image.axd?src=%2fimages%2fnews%2fImageForNews_26806_1575299634378640.jpg&ts=20191202101419&ri=1350);
			Text-align: center;
		}
		.about{
			color:#ffffff;
			background-color:#03C9C3;
			padding:15px;
			
		}
		h1{
			color:#000000;
			background-color:#1674CD;
			text-align:center;
			
		}
		h1 span{
			border: 4px dotted #1674CD;
		}
		p{
			font-size:17pt;
		}
		</style>
	</head>
	<body>
		<div class=header>
		<img src="images\DOEC_logo.png" alt="DOEC" />
		<h1>DEEP OCEAN<br /> ENTERTAINMENT CANADA</h1>
		</div>
		<div class=nav>
		<a href=".about">about DOEC</a>
		</div>
		<div class=about>
		<h1><span>about DOEC</span></h1>
<p>#############################################################################################################################################################</p>
		</div>
	</body>

</html>

(paragraph has information I would like to keep to myself)
Posted
Updated 26-Mar-20 13:11pm
v2
Comments
phil.o 26-Mar-20 18:33pm    
Totally unclear. Please improve your question and provide proper information.
HTMLPuppy 26-Mar-20 19:01pm    
I will, sorry
Richard Deeming 27-Mar-20 9:00am    
If you want someone to help you fix a problem, you need to actually tell us what the problem is.

Just saying "I have a problem with my code" and expecting us to guess what that problem is won't work.
HTMLPuppy 27-Mar-20 20:05pm    
YES I KNOW THAT

1 solution

An obvious problem is that you have to enclose attribute values between quotes:
HTML
<div class="nav">
   <a href=".about">about DOEC</a>
</div>
<div class="about">

Then, do you really have a file named ".about" at the same level as the current page in your site hierarchy? You should stick to proper naming of files, and avoid using names which begin with a dot, because for several systems this indicates a hidden file (.htaccess on linux, for example). Why not simply naming the file "about.htm" and use
HTML
<a href="about.htm">about DOEC</a>
instead?
 
Share this answer
 
v2
Comments
HTMLPuppy 27-Mar-20 15:06pm    
Thank you
phil.o 27-Mar-20 15:28pm    
You're welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900