in a nutshell (and off the top of my head, so maybe not 100% accurate): XHTML is just "converting/updating/adequating" HTML to the XML spec (all tags must close, case-sensitive, etc)
for example: HTML: <br> = valid XHTML: <br> = invalid (all tags must close) so the correct version would be <br /> (self-closing) Also, <b> became <strong>, <i> became <em> and <u> got scrapped. the whole idea is to better enforce the content/display seperation, ie no display info in the XHTML (leave it all to CSS) Right now it doesn't really do much for you or anyone... I recommend using the "XHTML Transitional" doctype, which is forgiving if you use legacy HTML tags :) On Oct 15, 11:25 pm, "Paulo Diovani" <[EMAIL PROTECTED]> wrote: > The way the page is being rendered, is slighty related to its markup, > but it also depends on the browser. This is way the web designers work > is always a big problem, since many pages render diferent depending on > the browsers. > XML is a markup language just like HTML, so, it has no way to prevent > a page from being rendered wrong or such things. > > As far as i know, xHTML is a variant of HTML that was created to use XML > markup. > > Please, take some time, and read the specifications: > HTML 4.01 spec.http://www.w3.org/TR/REC-html40/ > XHTML 1.0 spec.http://www.w3.org/TR/xhtml1/ > > It is due to you, to choose what one to use. I commonly use xHTML 1.0 > cause i use a php framework that generates xHTML markup, and also > because i preffer it's syntax. > But i was warned several times to use HTML 4.01 Strict, because it's > most widely portable and, due to this, better "understood" for every > browser. > > PS.: forgive my poor english... > > > > On Mon, Oct 13, 2008 at 4:15 AM, Justin <[EMAIL PROTECTED]> wrote: > > > I'm very new to XHTML, have been incorrectly using HTML for years and > > am finally taking a class to write html/xhtml files with some sort of > > logic. However, I have a question that is irritating the hell out of > > me. The book I'm reading from, "HTML and XHTML" by Patrick Carey, > > says (or my understanding of what it says) that I write an XHTML > > document, place it on the server, then when it is accessed by a user, > > an XML parser checks its syntax, and if it it is well formed and > > valied, it is passed by the parser and displayed by the browser. So > > if I put this page together: > > > <code> > > > <?xml version="1.0" encoding="UTF-8" ?> > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > > <html xmlns="http://www.w3.org/1999/xhtml"> > > > <head> > > > </head> > > > <body> > > Test body > > > <span> > > > </body> > > > </html> > > > </code> > > > Now obviously this is not a well formed document, yet, it successfully > > opens in both Opera and IE7, when, in my opninion, the page should not > > have been rendered due to the errors in the pages content. Which > > brings me to my question of, what the hell is the point of using > > XHTML? It seems to have everything clean and proper, yet there is no > > enforcement? > > > Thank you ahead of time for any enlightenment... > > -- > Paulo Diovani > [EMAIL PROTECTED] > +55 51 8146 5413 > ___________________http://www.diovani.com --~--~---------~--~----~------------~-------~--~----~ -- You received this because you are subscribed to the "Design the Web with CSS" at Google groups. To post: [email protected] To unsubscribe: [EMAIL PROTECTED] -~----------~----~----~----~------~----~------~--~---
