Welcome to Dejan's Blog

How to embed video

Posted on Sunday, 09 July 2023

How to Embed Videos

Videos can greatly enhance your website or blog. Whether you want to embed videos from YouTube, Vimeo, or any other online platform, or even host them locally, here's how you can do it.

Embedding YouTube Videos

To embed a YouTube video, use the following Markdown syntax:

[![Video Title](https://img.youtube.com/vi/YOUR_VIDEO_ID/0.jpg)](https://www.youtube.com/watch?v=YOUR_VIDEO_ID)

sample output

If you want to start the video from a specific point, you can add the time parameter in the video URL:

[![Video Title](https://img.youtube.com/vi/YOUR_VIDEO_ID/0.jpg)](https://www.youtube.com/watch?v=YOUR_VIDEO_ID&t=100)

sample output

You can also use the short syntax for YouTube videos:

[![Video Title](https://youtu.be/YOUR_VIDEO_ID)](https://youtu.be/YOUR_VIDEO_ID)

sample output

Embedding Local Videos

If your video is hosted locally, you can use the following Markdown syntax:

That's it! You can now embed videos in your Markdown-based static site generator using these instructions.

About me
Me
I'm Dejan Đenić, a seasoned software developer with over 20 years of experience, specializing in .NET backend development, NoSQL databases, microservices, CI/CD, and containerization. I have management experience, emphasizing secure API development. Through my blog and LinkedIn, I share insights, fostering a community of developers, and promoting effective team leadership in software development.
Social Plugin