Question

I would like to add the following property to my codebase:

<meta name="viewport" content="minimal-ui" />

However my project uses some centralised code which includes the following later down the page:

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

Can anyone advise if the tags will clash or override each other?

Was it helpful?

Solution

I think the meta tag is handled like the title tag. If you use more than one, they get overridden by the later ones.

I do not recommend to use more than one meta viewport, the page wouldn't get validated by the W3C validator.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top