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.
Nesting
Nesting
glesga
- Albert Wiersch
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
- Contact:
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!
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!
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Re: Nesting
Generally, if it looks fine in MSIE and not right in the better browsers, then it's MSIE that's getting it wrong...glesga wrote: Page looks ok in explorer. opera, firefox and netscape have minor differences.
"Atheism is nothing more than the noises reasonable people make in the presence of unjustified religious beliefs."
-
- Rank 0 - Newcomer
- Posts: 6
- Joined: Thu Jan 15, 2009 7:52 pm
- Location: East Moline, Illinois
- Contact:
Re: Nesting
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.