youtube-seo
shortcode allows you to easily embed YouTube videos in your documentation with proper styling and responsive behavior.
youtube-seo
shortcode whenever you need to embed a YouTube video in your documentation, such as:
VIDEO_ID
with the actual YouTube video ID (the part after v=
in a YouTube URL) and Video Title
with a descriptive title for the video.
Parameter | Required | Default | Description |
---|---|---|---|
id | Yes | - | The YouTube video ID |
title | Yes | - | The title of the video (for SEO and accessibility) |
width | No | 640 | The width of the video in pixels |
height | No | 360 | The height of the video in pixels |
allow | No | accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share | Permissions for the embedded iframe |
frameborder | No | 0 | Border around the iframe |