Meta tags
twitter:player:height
Sets the iframe height, in pixels, for an X Player Card. X has retired the detailed public tag reference.
Code examples
Good example
<meta name="twitter:player:height" content="320">Declares a player iframe 320 pixels high.
Good example
<meta name="twitter:player:height" content="480">Valid when the iframe is actually 480 pixels high.
Avoid this example
<meta name="twitter:player:height" content="100%">The field expects an integer pixel count.
Avoid this example
<meta name="twitter:player:height" content="320px">Do not include a CSS unit.
Recommendations
- 01Match Player DimensionsUse the actual iframe height as an integer without a unit.
- 02Use with twitter:player:widthDeclare both integer dimensions next to the twitter:player URL.
Related documentation
Related meta tags
Legacy Twitter App Card field for the numeric App Store ID of an iPad app. X has retired its public App Card reference.
<meta name="twitter:app:id:ipad" content="307234931">The numeric App Store ID once used by App Cards.
Legacy Twitter App Card field for the numeric App Store ID of an iPhone app. X has retired its public App Card reference.
<meta name="twitter:app:id:iphone" content="307234931">The numeric App Store ID for the former Twitter iPhone app.
Legacy Twitter App Card field for an Android application ID, usually the package name used by Google Play. X has retired its public App Card reference.
<meta name="twitter:app:id:googleplay" content="com.example.app">A conventional Android application ID.
Legacy Twitter App Card field for the name of an iPad app. X has retired its public App Card reference.
<meta name="twitter:app:name:ipad" content="My Amazing App">A plain app name that matches the store listing.
Legacy Twitter App Card field for the name of an Android app. X has retired its public App Card reference.
<meta name="twitter:app:name:googleplay" content="MyApp">A short app name that matches the store listing.