Is a full html page needed when loading a page with jQuery mobile?

Posted by Vincent Hiribarren on Stack Overflow See other posts from Stack Overflow or by Vincent Hiribarren
Published on 2012-06-28T21:05:48Z Indexed on 2012/06/28 21:16 UTC
Read the original article Hit count: 220

I am currently looking at jQuery mobile and its system of loading web pages with XmlHttpRequest. Thanks to that it is possible to automatically perform transition animations between two pages, for instance.

However, something is not clear to me. If I understand correctly, each new page of a jQuery mobile powered website is injected in the DOM of the initial web page. The documentation of jQuery mobile even tells that because of this mechanism, the <title> tag of new webpages are not taken into account.

So, in a way, if my initial webpage A.html loads a page B.html, I would tend to think that the webpage B.html does not need to have a full HTML grammar with the <html>, <head> or <body> tags.

My page B.html could directly begin with a <div> element.

Am I right?
Is a full html page needed when loading a HTML page with jQuery mobile?
What are the pros and cons about having a webpage with a wrong/truncated HTML syntax (appart that this page should not be accessed directly but through the main page)?

© Stack Overflow or respective owner

Related posts about html

Related posts about web-development