Tag Syntax in Viewport

I look on the Internet, and I'm still confused about what kind of work and not. I see errors on chrome when I use half a time, but iPhone recognizes it. The comma also works without errors. I wonder which one qualifies as the correct way to write it.

Half Columns -

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> 

Commas -

 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" / > 

http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html

I'm just looking for the correct interpretation of why I have this error if they work, especially why it throws an error in Chrome.

EDIT: woops, forgot the code tags. updated.

+7
source share
1 answer

Commas are the correct delimiters for viewport properties. iPhone Safari (and other browsers) may be more forgiving and interpret semicolons as delimiters, but then you rely on browser error handling.

+17
source

All Articles