HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding
Our weekly Search Engine newsletter covers the constantly evolving world of search engine optimization like no one else. To stay abreast of all the latestest news, reviews, and how-to's, subscribe today!

BuySellLinks.com is a Text Link Advertising Brokerage by the founder of LinkAdage that specializes in high end quality text links and a controlled membership base. To quickly build inventory we are paying webmasters who add quality domains that we can accepted into our inventory. We also offer free installation.

Tired of dealing with shady text link buyers and/or sellers? Try BuySellLinks.

This month's featured article takes a peek at Google Adsense and teaches you everything you need to know to properly maintain your account and get the most bang for your buck.



Apply Now and Read About Offer Details

Read Now!

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old September 1st, 2010, 02:50 PM
chedderslam chedderslam is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 45 chedderslam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 35 m 24 sec
Reputation Power: 2
Validator.w3.org won't validate nested ul

I have read on here that properly formatted html is a good idea. I am trying to validate my new site, and have run into an error I cannot figure out how to fix.

We have a section like so:
Code:
<ul>
	<li><a href="">category 1</a> - category 1 items</li>
	<ul>
		<li><a href="">category 2</a> - category 2 items</li>
		<li><a href="">category 3</a> - category 3 items</li>
	</ul>
</ul>


I am getting an error:
Line 364, Column 11: document type does not allow element "ul" here; assuming missing "li" start-tag

Reply With Quote
  #2  
Old September 1st, 2010, 03:50 PM
Dodechotomy Dodechotomy is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Jul 2010
Posts: 54 Dodechotomy User rank is Sergeant (500 - 2000 Reputation Level)Dodechotomy User rank is Sergeant (500 - 2000 Reputation Level)Dodechotomy User rank is Sergeant (500 - 2000 Reputation Level)Dodechotomy User rank is Sergeant (500 - 2000 Reputation Level)Dodechotomy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 20 h 45 m
Reputation Power: 19
That's because you have code inside a list, but not any particular list item. The correct code would look like this:
Code:
<ul>
	<li><a href="">category 1</a> - category 1 items
	<ul>
		<li><a href="">category 2</a> - category 2 items</li>
		<li><a href="">category 3</a> - category 3 items</li>
	</ul>
	</li>
</ul>

Last edited by Dodechotomy : September 1st, 2010 at 03:52 PM. Reason: messed up the code

Reply With Quote
  #3  
Old September 1st, 2010, 05:46 PM
chedderslam chedderslam is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Aug 2010
Posts: 45 chedderslam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 35 m 24 sec
Reputation Power: 2
That got it. Thank you for the help.

Just curious, what kind of penalty does a improperly formatted web page get? Is it worse if there are more errors?

Reply With Quote
  #4  
Old September 1st, 2010, 05:55 PM
dzine's Avatar
dzine dzine is offline
DIYSEO
Click here for more information
 
Join Date: Oct 2005
Location: sharing a room with my ego
Posts: 3,629 dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level)dzine User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 4 Days 9 h 15 m 51 sec
Reputation Power: 734
There is NO penalty for invalid code. Who told you that?
__________________
...Oi, DIY your SEO ...Love my hosting company...

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > Validator.w3.org won't validate nested ul


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap
 
SEO Chat is sponsored by:
Close this Sponsor Message