Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I am having a problem with my links carrying over. I made the <"span"> tag so I could just say "this is where you post". I don't want it to be a link, just four letters that do nothing but sit there, but my code apparently says otherwise. The <"textview"> tag is also a link and I have no idea what's going on.
This is what I have so far:

XML
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
body{
background-color:white;
}
.vcpostword{
color:orange;
}
.vcredbar{
background-color:darkred;
 color:orange;
font-family:sans;
text-align:left;
}
.vcnotebar{
float:left;
}
.vcposter, vccontent{
margin-left:100px;
border-left:1px solid grey;
padding:0em;
}
a:link, a:visited{
display:block;
font-weight:bold;
color:orange;
width:70px;
padding:7px;
text-align:left;
text-decoration:none;
}
a:hover, a:active{
color:darkred;
}
.vccontent{
}
</style>
</head>
<body>
<div class="vcredbar">
<h2 id="redbar">vocabularity</h2>
</div>
<div class="vcnotebar" id="sidebar">
<a id="prof" href="http://www.vocabularity.com">Profile<br/>
<a id="upd" href="http://www.vocabularity.com">Updates<br/>
<a id="strm" href="http://www.vocabularity.com">Stream<br/>
<a id="msg" href="http://www.vocabularity.com">Messages<br/>
</div>
<div class="vcposter">
<span class="vcpostword">Post</span>
<textarea align:top-center; rows="2" cols="50" title"quote-bar" placeholder="What's your quote?" maxlength="1000" decorated="true">
</textarea>
</div>
<div class="vccontent" id="content">

</div>
</body>
</html>


If you can tell me what's going on, I would greatly appreciate it.
Posted

Now I haven't look into HTML5 yet, but I'm sure you still have to close your a-tags, so add </a> to you html.
 
Share this answer
 
Comments
Espen Harlinn 23-Oct-11 17:51pm    
Right :)
Simon Bang Terkildsen 25-Oct-11 14:38pm    
phew, was afraid HTML5 had f***ed up the little knowledge I have of web development :P
Thats because of your anchor tag was open. close them like below.


HTML
<body>
<div class="vcredbar">
<h2 id="redbar">vocabularity</h2>
</div>
<div class="vcnotebar" id="sidebar">
<a id="prof" href="http://www.vocabularity.com">Profile</a><br />
<a id="upd" href="http://www.vocabularity.com">Updates</a><br />
<a id="strm" href="http://www.vocabularity.com">Stream</a><br />
<a id="msg" href="http://www.vocabularity.com">Messages</a><br />
</div>
<div class="vcposter">
Post<br />
<textarea align:top-center; rows="2" cols="50" title"quote-bar" placeholder="What's your quote?" maxlength="1000" decorated="true">
</textarea>
</div>
<div class="vccontent" id="content">
 
</div>
</body>
 
Share this answer
 
v2
Comments
Espen Harlinn 23-Oct-11 17:51pm    
Right :)

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