W3C recently released two standards, XHTML Basic 1.1 and mobile Web best practices 1.0. Both standards are applicable to mobile Web. XHTML Basic 1.1 is the W3C-recommended mobile Web markup language.
There are many branches of mobile sdks. The release of XHTML Basic 1.1 provides a standard for mobile sdks. XHTML Basic 1.1 includes the following new features:
New XHTML form;
Added built-in events;
Added the value attribute to the li object;
Added the target attribute;
Adds a style object;
New style attribute
Added the XHTML display module;
Added the inputmode attribute;
W3C summarizes 10 basic rules from the best practices of mobile Web:
Design consistent Web pages for multiple devices. When designing mobile Web pages, various devices must be taken into account to reduce costs and increase flexibility;
Relying on Web standards: in a market with various devices, Web standards can ensure compatibility between different devices;
Avoid some common problems of mobile devices: for example, do not bring up a window, do not use nested tables, do not use Frame;
Learn about restrictions on mobile devices: mobile devices generally do not support cookies, Javascript, and other technologies;
Optimize navigation: Use a clear, concise, and minimized navigation system;
Check images and colors: Do not use high-resolution images. Check images based on the possible screen sizes, resolutions, and supported colors and contrast of mobile devices to ensure they are properly displayed;
Small: the page display size, file size, CSS size should be as small as possible;
Save bandwidth usage: Do not use technologies such as automatic refresh and redirection. Do not reference external resources too much. Make good use of the page cache;
Easy user input: mobile device input is not easy to use, and convenient assistance should be provided for user input as much as possible;
Consider busy users: Busy users have limited time, and the information provided by mobile Web should be simplified and clear;
You can go to mobileOK checker to verify your mobile Web to test whether it is friendly to mobile devices.