John Reid, in his jQuery Mobile book, has a good understanding of the use of html5 tags:
<section data-role="page">
<header data-role="header">
<nav data-role="navbar">
<div data-role="content">
<footer data-role="footer">
Q: Is it possible for me to get rid of data-role = "page", "header", "nav", "footer" if I use section, header and footer tags? Maybe I could add some js before jQuery Mobile boots up.
Theoretically, if I added this before downloading jQuery Mobile, this would work:
$('header').attr('data-role','header');
Hm ... I may have to update the elements after applying this attribute. Or call the create method.
source
share