# Mobile screen resolution and canvas size

I'm making a HTML5 game using the canvas. I was building it for my iPhone 6 which state a resolution of 1334x750 pixels but also a resolution of 667x375 points. I notice that my canvas need to match the size in points or else it would go beyond the screen.

<canvas width="667" height="375" />


Is it possible for my canvas to actually be 1334x750? Or am I stuck at 667x375?

• Have you tried putting "px" after the sizes? – Bálint Mar 7 '18 at 16:52
• @Bálint I thought I tried it but I'll try again tonight. – the_lotus Mar 7 '18 at 17:05