If you want your content to look perfect on an iPhone you must use the viewport meta tag. Without it, your page may look like thumbnail. I had not heard of this tag until now. But it does the trick.
<meta name="viewport" content="width=320, user-scalable=yes">
Add this tag to the head section of the HTML page. If you set user-scalable to no, then your users wont be able to zoom in or out, so it is friendly to set it to yes (unless you are writing a page that is not meant to be zoomed in).
Advertisement
February 14, 2010 at 2:44 pm |
Thanks. Just doing my first attempt at a mobile web site site and that was helpful.
May 17, 2010 at 2:47 am |
Intresting post, i really enjoyed reading it.
June 7, 2010 at 4:18 pm |
I think the tag should be closed as:
June 7, 2010 at 4:22 pm |
my tag didn’t show up but there has to be a slash before the closing >