Hey all, Sorry for the n00bish questions, I think CSS div tags process quicker than HTML tables, though, right? So div or table? And why use XHTML over HTML? Thanks for any help, -Matt
Well, HTML really is just as structured as XHTML. The only problem is that most people teach, learn, and write sloppy HTML. The benefits of XHTML right now for the developer is pretty much nothing. No browser (that I know of) has actually implemented the extensible part of eXtensible HTML. So for now there's really nothing new you can do with XHTML. Devices have a theoretical benefit, but probably no practical benefit. XML parsers are simpler than SGML parsers, meaning XHTML pages may not require as much processing power. However, since the majority of the Web remains HTML these devices would still have to be powerful enough to process HTML code anyway. So the only benefit you might get from writing your pages in XHTML is just to save yourself the trouble of doing it five years from now. (Five years is just a guesstimate, btw.)
yeah there might not be any benefit as of right now but just on a self organization level i find it a lot easyier to maintain with the strict standards of xhtml
To the contrary, the ONLY browser that does NOT do XHTML is Internet Explorer. ALL the other major browsers run XHTML just fine. If you don't concern yourself with visitors using IE, XHTML may be the better way to serve pages, especially if you are transferring machine to machine and using XML, or do more information sharing than pretty blinking lights.
As said above, XHTML is no more strict than HTML except browsers don't forgive sloppy coding with XHTML like they do with HTML.
If you use the <div> tag combined with CSS, you will create a page that is easy to manage and manipulate later. Using the <div> tag allows you to define the page in terms of the logical divisions of the page, not just the locations in the layout (that will certainly change in the future). Most Web pages have fairly standard content chunks, and if you use the <div> tag to divide them, you'll be ready to style them however you'd lik......
Right now I use the only XHTML and CSS, without any tables. And my html files readable and short I hope, for Google too