HTML question first page validated:)

I’m guessing you’re using IE.
It seems IE is extra picky, you need to get both sections down to one virtual “line” to make it happy. Firefox is happy with the two sections as long as internal to the section is on a virtual line. Collapse it down (in the same manner as my previous post) and the space goes away even in IE.

Even setting border and padding in CSS for those items to 0 doesn’t collapse the space in IE so it looks like whitespace removal is the only way to make it happy.

No, I was using Firefox, with the code I put in my post.

Oh I do, but only when it’s done properly. Most people do not check that their xhtml is well formed and valid (not the same thing) and if there’s one tiny error the browser should not and will not render the page.

But wait how come you can see your pages (especially in IE as it dose not even support xhtml yet)? Because xhtml has to be served with the correct mime type or browsers just treat it as malformed html (and html parsers are designed to cope with errors). So you end up with a page that is not valid xhtml or html.

This is another part of the problem, x(ht)ml requires all tags be closed but in html tags like <br> and <img> don’t have closing tags. No problem in x(ht)ml you can have a self closing tag like so <img /> but html has a feature called null end tags where the forward slash closes the tag meaning the > should get rendered after the image. You don’t see them because browser vender’s cant support null end tags because of all the xhtml pages being served as html.

I’m with N30N all the way here and just want to give a heads up to what N30N said in this thread. Generally, you use HMTL markup according to what the items in question mean, not how they should look, that’s the job of CSS.

Also, about unordered lists used for a list of links, here are very helpful examples and a tutorial how to do it properly that helped me greatly when I was learning using standard compliant HTML/CSS:

Tutorial
Examples 1
Examples 2

Um… Internet Explorer supports xhtml. My site is completely xhtml, and it works fine in both IE 6 and Firefox.

But yes, I am seeing now why it is good for him to use lists in this part. I didn’t see it before, but now I do.

No it doesn’t. What IE supports is xhtml that is written to compile with and served as html. Which is completely pointless as you can not make use of the features or benefits of xhtml (because it’s not real xhtml).