Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions extensions/amp-youtube/amp-youtube.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
-->

### <a name="amp-youtube"></a> `amp-youtube`
## <a name="amp-youtube"></a> `amp-youtube`

Displays a Youtube video.

Expand All @@ -23,16 +23,13 @@ Example:
<amp-youtube
data-videoid="mGENRKrdoGY"
layout="responsive"
width="480" height="270"></amp-youtube>
width="480" height="270">
</amp-youtube>
```
With responsive layout, the width and height from the example should yield correct layouts for 16:9 aspect ratio videos.


With responsive layout the width and height from the example should yield correct layouts for 16:9 aspect ratio videos

#### Attributes
### Attributes

**data-videoid**

The Youtube video id found in every Youtube video page URL

E.g. in https://www.youtube.com/watch?v=Z1q71gFeRqM Z1q71gFeRqM is the video id.
The Youtube video ID found in every Youtube video page URL. For example, in the URL `https://www.youtube.com/watch?v=Z1q71gFeRqM`, "Z1q71gFeRqM" is the video ID.