div
element with a specific role
a
tag.
div
tag
div
, we define a role
role
in jQuery Mobile is defined using the attribute data-role
<div data-role="page">
data-<something>
or data-*
attributes
on an HTML tag is an HTML5 feature called custom data attributes
that allows us to define whatever attribute we want to add to a tag
while maintaining an HTML-valid document.
It is useful for adding custom metadata to tags without invalidating the markup.
data-role
is not a new HTML5 new attribute
Role Description page Defines a page, the unit that jQuery Mobile uses to show content header Header of a page content Content of a page footer Footer of a page navbar Defines a navigation bar, typically inside a header button Renders a visual button controlgroup Renders a component collapsible Collapsible panel of content inside a page collapsible-set Group of collapsible panels (accordion) fieldcontain Container for form fields listview Content of multiple items as a list dialog Dialog page slider Visual slider for Boolean values nojs Element that will be hidden on jQuery Mobile’s compatible browsers
Casiano Rodriguez León 2015-01-07