Originally posted by Shannon
I wish the W3C would provide a downloadable validator application. I hate having to go to their page all the time.
Actually, I read on the Webstandards.org website a couple weeks ago that the W3C released a stand-alone validator, but to be honest, I haven't looked into it (I'll be perfectly frank in that I almost never validate my pages, because I already know most of the XHTML "strict" specs by heart (and I always encode ampersands), so I rarely need it).
What is it with you and hating linebreaks? Sure, when people use them to place an image 10 lines down the page, they suck. But for something practical like so:
Lorem Ipsum
Lorem ipsum dolor sit amet, <snip!>
Naturally you'd use a <br /> to seperate the title from the rest of the paragraph there, and you don't get 20px or so of whitespace between as you would by adding a <h1>. [/B]
I totally understand what you're saying, but it
is an issue of semantics – for a pinch-assed tightwad like me (
![Big Grin :D :D](/wp-content/themes/gtp16/images/smilies/biggrin.svg?v=3)
), a heading must be marked up as a heading, and a paragraph must be marked up as a paragraph. I should note that the W3C themselves have noted this, and thus are removing
<br /> from the XHTML 2.0 specs.
I've almost never had a situation where I've needed the header to hug the paragraph, but in that case, some negative margins will works just fine.
I just stated that the semantics were off (and that's factual, not an opinion), and suggested how to make it semantic – Sunny doesn't have to do it that way if he doesn't want to, by any means. Just trying to tell people now, because several years down the road semantics
will be a
huge part of web design, because of the fact that more user agents (apart from desktop browser) will be grabbing pages. Trust me, that will become a key word in web development, though not yet.