The mobile Internet is called the "fifth technological revolution". With the increasing popularity of smartphones such as iPhone and Android and the emergence of tablets such as iPad, the potential and trends of the mobile Internet have become increasingly apparent. Website development for mobile devices It is attracting more and more attention, and many domestic companies have begun to pay attention to website development for all mobile devices.
Generally speaking, there are two approaches for mobile websites:
This article and the next article will introduce the first option, and the following article will end the second option.
In this article, we first take a look at the markup language of mobile websites.
Mobile website development is much more complicated than ordinary website development, and choosing a markup language for mobile websites is also quite confusing.
Initially, the WAP Forum (later merged with NTT to form OMA, Open Mobile Alliance) created an XML-based language called WML, which was a markup language for WAP websites. It's not ideal because it splits the site into two parts: regular pages using (X)HTML, and mobile sites using WML. Web developers who wanted to build a mobile site also had to learn a new language rather than switch technologies, and the "one-stop shop" credo was broken. Users could not access their favorite sites and had to discover the WAP version of the site. —if they exist. In addition, Japan's NTT created their own language cHTML (compact HTML), but it is not compatible with XHTML and WML.
Since this was far from ideal, the W3C created XHTML Basic 1.0. As the name suggests, this is a subset of XHTML 1.1. Because XHTML 1.1 improves XHTML into small modules, a subset can contain only the basic modules, elements, and attributes that are necessary or can be controlled on low-end mobile devices.
Based on XHTML
XHTML Basic provides the basic modules for a markup language for mobile websites. Like its underlying XML, it is designed to be extensible. This coincided with the merger of WAP and NTT (that is, OMA), who created the successor to cHTML and WML, XHTML Mobile Profile - which added some of the features of their previous versions to XHTML Basic. characteristic. The coexistence of XHTML Basic and XHTML MP seemed a bit confusing, but shortly afterwards the W3C released version 1.1 of XHTML, which absorbed some features added to XHTML MP. So now it seems that these two versions are almost the same. As for which one to use, it often just depends on personal preference. Here we choose XHTML Basic because it is recommended by W3C… :)