Is there a problem with this code?

<div id="center">
<ul id="list-nav">
<li><a href="/" >Home</a></li>
<li><a href="/articles">Articles</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Projects</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>

Recommended Answers

You mean with regard to not following the HTML standard? No, i do not see any problems.

Jump to Post

All 4 Replies

You mean with regard to not following the HTML standard? No, i do not see any problems.

JorgeM is right... try his solution.

It is perfectly fine with respect to the code,but giving blank hrefs is usually done when the site is under construction.Take care of that when it is fully developed.

Member Avatar

Looks OK, but you may want to add a title attribute to the links.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.