<p>We are in the initial planning stages of building out a mobile site for one of our clients.  This mobile site will be in addition to the main site that we have already built for them.  We've determined that the content is going to be a small subsection of the main site and will target the main audience that is expected to use the site.</p>

<p>While looking through some sample mobile sites we noticed that a lot of site that have WAP in the url are actually just simplified HTML files.  <a href="http://wap.mlb.com" rel="nofollow noreferrer">http://wap.mlb.com</a> is not really WAP enabled but simple HTML.</p>

<p>My question is WAP a think of the past?  With smartphones and the iPhone having the ability to render sites as is do we need to worry about WML and WAP or will a stripped down html version be enough?  </p>

<p>Also can you recommend a blog or tutorial or answer below how best to check for mobile devices?  Do we as the programmer need to know each variation of user agent in order to redirect them to our mobile site? </p>

<p>Finally, would you program a mobile site for the iPhone/Touch Safari browser or just leave the site as is?</p>

[{'answer_id': 9462, 'author': 'Jon Limjap', 'author_id': 372, 'author_profile': 'https://Stackoverflow.com/users/372', 'pm_score': 0, 'selected': False, 'text': '<p>I think the main difference with the 2.5G phones and the new 3G phones is that while 2.5G phones used their own browsers, browsers on 3G phones have become much more similar/accurate in their rendering capabilities.</p>\n\n<p>On the other hand, you can use CSS to render the same HTML in either a large screen format or a small mobile-optimized one, so I guess what has happened is that the "simple HTML" approach just appeared to be the least difficult path to take. Also, tableless layouts allow websites to scale better, making it easier to render a site in both large and small screen formats.</p>\n\n<p>So the end question will be that of a target market. Are you targeting a tech-savvy audience who will tend to have fully 3G-capable phones? Are you targeting people who might have 2.5G at the most?</p>\n'}, {'answer_id': 9479, 'author': 'John Mac', 'author_id': 1050, 'author_profile': 'https://Stackoverflow.com/users/1050', 'pm_score': 0, 'selected': False, 'text': "<p>My experience is that it really depends on what you're trying to do and who/where the users are.  </p>\n\n<p>While WAP got a lot of bad press, it's strength is where you have low bandwidth high-latency connections.   The WML content gets optimised by the carrier's gateway to greatly reduce the amount of data transmitted over the air.  If you have iPhones and the like, in areas with solid 3G coverage you can afford to go for richer content, but if you want an app to still perform well in more out of the way areas, WAP has a big advantage.</p>\n\n<p>One thing to watch out for with WAP is that the quality of the WAP support in handsets varies a lot (guess you'd also say the same for smartphone web browsers).  Most of them display pages ok, but the form handling is truly awful in some browsers.</p>\n\n<p>If you vary content based on user-agent, you should also provide an explicit way to access a specific type of content (e.g. seperate uri's) - the automated choice is not always right and you want the client to be able to override it .</p>\n\n<p>If you go with WAP development check out WinWAP - a Windows-based WAP browser.</p>\n"}, {'answer_id': 14471, 'author': 'roryf', 'author_id': 270, 'author_profile': 'https://Stackoverflow.com/users/270', 'pm_score': 1, 'selected': False, 'text': '<p>I would highly recommend you check out <a href="http://www.cameronmoll.com" rel="nofollow noreferrer" title="Cameron Moll">Cameron Molls\'</a> book <a href="http://mobilewebbook.com/" rel="nofollow noreferrer">Mobile Web Design</a>. Its not so much a technical how-to for building mobile optimised sites but makes you think about the various options available and summarises each ones pros and cons. Will definately make you think about what approach you\'re taking and whether its the right one. I think it also has some pointers to resources that help detect mobile device requests to your site, there are various options out there.</p>\n'}, {'answer_id': 15150, 'author': 'Ben Combee', 'author_id': 1323, 'author_profile': 'https://Stackoverflow.com/users/1323', 'pm_score': 0, 'selected': False, 'text': '<p>If you want to spend a very small amount of money, you can find a used copy of my book <a href="https://rads.stackoverflow.com/amzn/click/com/1928994326" rel="nofollow noreferrer" rel="nofollow noreferrer">"Palm OS Web Application Developer\'s Guide"</a> on Amazon for under $1.  While the specific tips about the old Palm VII devices don\'t apply anymore, there\'s a few sections on making mobile websites that might still apply.  My basic advice is this: make pages small with relevant information first, then navigation links; push generic/boilerplate content to other pages;  try to optimize to reduce the amount of time a user spends on a single page; and avoid downloading lots of objects (images, JavaScript files) for a page to reduce latency.</p>\n'}, {'answer_id': 15168, 'author': 'crashmstr', 'author_id': 1441, 'author_profile': 'https://Stackoverflow.com/users/1441', 'pm_score': 2, 'selected': False, 'text': '<p>Here are two things you can do to improve support for iPhones without doing much work:</p>\n\n<p>Make page scroll up to hide URL bar:</p>\n\n<pre><code>&lt;script type="application/x-javascript"&gt;\n\n  if (navigator.userAgent.indexOf(\'iPhone\') != -1) {\n    addEventListener("load", function() {\n      setTimeout(hideURLbar, 0);\n    }, false);\n  }\n\n  function hideURLbar() {\n    window.scrollTo(0, 1);\n  }\n\n&lt;/script&gt;\n</code></pre>\n\n<p>And set scaling for the page width (best to do some testing and play with this, also look for other examples that may use <code>user-scalable=true</code>):</p>\n\n<pre><code>&lt;meta name="viewport" content="width=320; user-scalable=false" /&gt;\n</code></pre>\n'}, {'answer_id': 31805, 'author': 'nohj', 'author_id': 2953, 'author_profile': 'https://Stackoverflow.com/users/2953', 'pm_score': 3, 'selected': True, 'text': '<p>Newer phones come with WAP2 which uses HTML Mobile Profile (XHTML MP), which is quite similar to normal HTML.  Older phones use Wireless Markup Language (WML). </p>\n\n<p>Depending on your audience I would consider making a mobile phone friendly version of the site using XHTML MP and drop WML completely. By mobile phone friendly I mean light graphics, little JavaScript and simple navigation.</p>\n\n<p>To check capabilities of different hand phones, take look at <a href="http://wurfl.sourceforge.net/" rel="nofollow noreferrer" title="Wireless Universal Resource File">WURFL</a>.</p>\n\n<p>Also, you might want to take a look at <a href="http://www.w3.org/TR/2008/REC-mobile-bp-20080729/" rel="nofollow noreferrer" title="Mobile Web Best Practices">Mobile Web Best Practices</a> from w3c.</p>\n'}, {'answer_id': 15688077, 'author': 'Tom S', 'author_id': 2220801, 'author_profile': 'https://Stackoverflow.com/users/2220801', 'pm_score': 0, 'selected': False, 'text': '<p>The code:\n\nCauses the w3 validator to return 11 erorrs when I use it.\nHere\'s the index page it was tried in:\nYou\'ll not some multiple lines, not used.  They\'re template lines.</p>\n\n<pre><code>&lt;!DOCTYPE HTML&gt;\n&lt;head&gt;\n&lt;meta http-equiv="Content-Type" content="text/html; charset=windows-1252"&gt;\n&lt;title&gt;Photography Aerial Commercial Portrait Underwater Wedding Tom Szabo&lt;/title&gt;\n&lt;meta name="description" content="A Thomas Image professional photography serving Cleveland\nNortheast Ohio Chagrin Falls Chardon Kirtland Madison Mentor Painesville Perry and Willoughby"&gt;\n&lt;meta name="keywords" content="A Thomas Image, professional, photography, cleveland, northeast ohio, chagrin falls, chardon, concord, kirtland, madison, mentor, painesville, perry, willoughby,commercial, marketing, advertising, executive, head shot, portrait, baby, children, family, high school senior, family reunion, underwater, scuba diving, pool party, wedding, bride, groom,"&gt;\n&lt;meta name="y_key" content="7b00158550200c1c"&gt;\n&lt;meta name="y_key" content="b5a3e0c1d778ff8a"&gt;\n&lt;meta name="msvalidate.01" content="7C6C4CEC2EB84051B1DCFEC558B77724" /&gt;\n&lt;meta name="verify-v1" content="G4nmk0aesZsCjneBo0W6kVlv5NpImVnTfsQ+fXEk1fA=" /&gt;\n&lt;meta name="viewport" content=”width=320,user-scalable=false”&gt;\n</code></pre>\n'}, {'answer_id': 22448963, 'author': 'Durai Amuthan.H', 'author_id': 730807, 'author_profile': 'https://Stackoverflow.com/users/730807', 'pm_score': 1, 'selected': False, 'text': '<p>As of now(2014) </p>\n\n<p>We may not need separate site for mobile devices instead we can go for front end libaries like <strong>Twitter Bootstrap</strong> which uses <em>responsive rendering</em>\nso that site adapts itself to the screen size whether it be <em>Tablet</em> or <em>Mobile device</em> or <em>Desktop</em></p>\n\n<p>One of Major advantages is it takes <strong>less maintenance</strong> when compared to having separate websites for mobile and desktop.</p>\n\n<p>To know more about <em>Twitter Bootstrap</em> click <a href="http://getbootstrap.com/getting-started/" rel="nofollow">here</a></p>\n'}]
['https://Stackoverflow.com/questions/9435', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/648/']