Register now for Mobile Web Development and Advanced Mobile Web Development for Smartphones for Fall 2009. Classes meet 5:30pm - 9:30pm once a week for six weeks in Portland, Oregon.
See the Mobile Web Development curriculum or contact me for details.
In HTML, there is a very simple way to advertise a relationship between a desktop web page (or site) and the equivalent page (or site) on the mobile web. Very few desktop web sites implement this practice today. I have no idea why not, because the change is trivial and the benefits are broad.
Use link relationships to express that a particular web page is the mobile equivalent of a desktop web page. Link relationships can also be used to express that a mobile web site is the mobile equivalent of a desktop web site.
Here is an example HTML link tag embedded in the header of a desktop web page to declare a relationship with a mobile web page:
<link rel="alternate" media="handheld" href="http://m.example.com" />
An added benefit of using link relationships for mobile web discovery is improved mobile SEO. Desktop web crawlers look for HTML link tags to define page relationships. The crawler obtains the mobile web URL from the href attribute and knows from the media attribute that the content is mobile-friendly.
There are two other easy ways to increase mobile web discovery. These approaches are effective for mobile site discovery but don’t express direct relationships between a desktop web document and its counterpart mobile web document.
Use a Google Mobile Sitemap. A Google Mobile Sitemap is a sitemap file containing only mobile web URLs. The sitemap uses an additional XML namespace and a new tag to declare a URL as mobile content. Advertise your mobile sitemap in /robots.txt or submit it directly to search engines using webmaster portals.
Here is an example Google Mobile Sitemap:
<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0">
<url>
<loc>http://mobile.example.com/article100.html</loc>
<mobile:mobile/>
</url>
</urlset>
Use a /meta.txt file in the root directory to define PC and mobile entry points (and other metadata) for the website.
Here is an example of a meta.txt file that would be found at http://example.com/meta.txt:
name:example.com
description: example.com is a widely used example website
keywords: example, demo, demonstration
pc: http://www.example.com
mobile: http://m.example.com
rss:http://rss.example.com/rss/topstories.xml
rss:http://rss.example.com/rss/politics.xml
podcast: http://rss.example.com/podcasting/news.xml
video: http://rss.example.com/rss/tutorial.xml
longitude:12.3456789
latitude:98.7654321
region:MM