Nesting

Discussion about HTML and XHTML related issues.
Post Reply
glesga
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 1
Joined: Fri Jul 01, 2005 12:46 pm
Location: California
Contact:

Nesting

Post by glesga » Fri Jul 01, 2005 1:04 pm

I am new to html and validating html, so bear with me.
I look at my pages and they seem ok but when I validate them
It will tell me nesting is not allowed, I also have tables inside tables.
I try to change what cse errors show but the page goes wacky and I undo what I change and it looks fine. I am trying to validate http://www.sportstopsupply.com
I use Frontpage 2003.
Page looks ok in explorer. opera, firefox and netscape have minor differences.
I thought this would be easy but I have a lot to learn.
glesga

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3442
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Post by Albert Wiersch » Mon Jul 04, 2005 11:20 am

Using FrontPage can be problematic. It's probably gotten a little better in newer versions, but it is well known to generate inefficient and incorrect HTML, so fixing your pages and then loading them back into FrontPage can cause FrontPage to reintroduce problems.

If you are having problems when you "fix" your HTML then you're probably not fixing it correctly. If it is fixed correctly, then it should display correctly. To use CSE HTML Validator effectively, one must know some basic HTML, including nesting. Nesting simply means that if you use the "i" start tag then the "b" start tag, you must use the "b" end tag before you use the "i" end tag. In other words, the most recently opened tag should be the first one closed.

Incorrect nesting:
<i><b>Text</i></b>

Correct nesting:
<i><b>Test</b></i>

Hope this helps. Don't give up!
Image
Albert Wiersch

User avatar
epicure
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 5
Joined: Sat Dec 18, 2004 3:35 am

Re: Nesting

Post by epicure » Tue Dec 04, 2007 1:36 am

glesga wrote: Page looks ok in explorer. opera, firefox and netscape have minor differences.
Generally, if it looks fine in MSIE and not right in the better browsers, then it's MSIE that's getting it wrong...
"Atheism is nothing more than the noises reasonable people make in the presence of unjustified religious beliefs."

Dwight_Stegall
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 6
Joined: Thu Jan 15, 2009 7:52 pm
Location: East Moline, Illinois
Contact:

Post by Dwight_Stegall » Fri Jan 16, 2009 9:31 am

Why use CSE to validate your pages and not code your pages in it. I suggest you get rid of frontpage and just use CSE. I sure wish it had an internal FTP app.

User avatar
CaryD
Rank II - Novice
Rank II - Novice
Posts: 46
Joined: Sun Oct 01, 2006 2:18 pm
Location: CA

Post by CaryD » Sat Jan 17, 2009 8:41 pm

Given the age of the post, the OP is probably using something else these days. Hard to say, though, because that page linked to hasn't had it copyright updated since 2004.

worrall
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 6
Joined: Sat Aug 25, 2012 8:06 am

Re: Nesting

Post by worrall » Mon Aug 27, 2012 9:19 am

This is what sometimes happens when don't remember to close the tags correctly or did some syntactical error so my suggestion is whenever you open an braces or tag immediately close the ending braces or tag and then code.This is only way to escape from getting error messages or getting into problems so be alert about the closing tags.

Post Reply