---Roger Hui wrote: > Whatever benefits you can get by doing > > > No problem, in that case put the <div id="Header"> and > > </div> immediately after <!--top jump start --> and > > immediately before <!--top jump end--> respectively. > > you can get the same thing by having a program that would > recognize <!-- top jump start --> etc.
I imagine that you are using those comments to enable a single source file containing the header and footer links to be replicated across all pages. I agree that is a good idea. To me structural markup & CSS accomplishes the same thing for formatting - you don't have to replicate edits on lots of different pages to get the desired visual appearance. Enclosing the header (or any of the structural parts of the page including paragraphs) with tags lets you precisely target it using CSS. You can then use CSS to change the font, borders, whitespace, color, whether it appears etc. I'm sure you could write programs to do all of that if you wished. The question is whether that is how you want to spend your time when there already exists well-developed, tested and accepted methods. Of course there is the effort of updating the current markup, but to me that would have more long-term benefits than creating custom solutions. > > By enclosing a paragraph with <p> </p> tags it is possible > > to target it using CSS. That means it is possible to specify the > > whitespace for all paragraphs across all pages, and make a > > change for all pages just by changing the CSS file, while > > leaving the content untouched. > > This is worth doing only if it is deemed worthwhile to specify > the whitespace for all paragraphs across all pages. If in the future you wanted to target other media (not just a desktop/laptop web browsers) then that may well be desirable. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
