Embed YouTube Videos
Embedding a video into your RevasOS site is easy.
YouTube
- Go to the YouTube video you want to embed.
- Click the Share button below the video.
- Select the Embed option.
- Copy the code provided (it starts with
<iframe>
). - On RevasOS:
- Go to the page where you want to embed the video.
- Click New Block and select New Code Block.
- Paste the code into the block and save.
Change the size and appearance of the video
If you want to change the size of the video (for example, make it full-page or center it with padding), you can do so by editing the HTML code of the iframe. Here's how:
- Copy the iframe code of the video you already inserted.
- Paste it into a ChatGPT prompt with a request like this:
- To make it full page:
Edit this HTML to make the video full page. I only want HTML with inline CSS, no JavaScript, here's the code: [replace this space with your embed code]
- To center it on the page:
Edit this HTML to make the video centered, fairly large but with padding around it. I only want HTML with inline CSS, no JavaScript, here's the code: [replace this space with your embed code]
- To make it full page:
- Copy the resulting code;
- On RevasOS:
- Go to the page where you want to embed the video.
- Click New Block and select New Code Block.
- Paste the code into the block and save.