Viewport metadata

noun

say it: “VYOO-port MET-uh-day-tuh” /ˈvjuːpɔrt ˈmɛtəˌdeɪtə/

A meta line in a page's head that tells phones to lay the page out at their own screen width instead of pretending to be a wide desktop screen and shrinking everything.

What is Viewport metadata?

Viewport metadata — Metadata that guides how a page's viewport is sized and scaled on mobile devices.

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

In a sentence

  • “Once I added the viewport metadata, the taco truck page stopped looking like a tiny zoomed-out desktop page on my phone.”

Level: Journeyman · More HTML terms at this level

Updated