Create a mobile website with jQuery Mobile

This is an edited excerpt from Chapter 15 of Murach's HTML5 and CSS3 by Zak Ruvalcaba and Anne Boehm.

jQuery Mobile is a free, open-source, cross-platform, JavaScript library that you can use for developing mobile websites. This library lets you create pages that look and feel like the pages of a native mobile application.

Swipe to scroll horizontally
slideThe next page slides in from right to left.
slideupThe next page slides in from bottom to top.
slidedownThe next page slides in from top to bottom.
popThe next page fades in from the middle of the screen.
fadeThe next page fades into view.
flipThe next page flips from back to front similar to a playing card being flipped over. This transition isn’t supported on some device.
Swipe to scroll horizontally
aBlack background with white foreground. This is the default.
bBlue background with white foreground.
cLight gray background with a black foreground. Text will appear in bold.
dDark gray background with black foreground. Text will not appear in bold.
eOrange background with black foreground. Use for accents, and use sparingly.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of eight full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Ecommerce Editor Beren Neale, Senior News Editor Daniel Piper, Editor, Digital Art and 3D Ian Dean, Tech Reviews Editor Erlingur Einarsson and Ecommerce Writer Beth Nicholls and Staff Writer Natalie Fear, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.