Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
2 like 0 dislike
12k views
in GitHub by 29 37 42

I am using GitHub site, and I need to embed video or map or IFrame to be shown in GitHub readme.md file, Is it possible?

I have tried to embed IFrame using the below code but it's not working the MarkDown GitHub readme.md file!

<iframe  frameborder="0" 
        style=" width: 100%; height: 110%;" src="https://app">
      </iframe>

I also have tried the below <Object> tag to embed a video

<object width="625" height="800">
  <embed src="http://url"
         type="application/x-shockwave-flash"
         wmode="transparent" width="625" height="800" />
</object>

but still I can't embed IFrame in GitHub?

embed html in github

Can you help me to know How can I embed IFrame and Video in GitHub readme.md file?


1 Answer

3 like 0 dislike
by 151 169 345
selected by
 
Best answer

Is it possible to add an IFrame to the GitHub Readme page?

As a short answer, NO, embed HTML code is not supported in Github files like the Readme page, even though you have set the extension to the .HTML.

embed html code in github

The HTML code can be ONLY emebed to GitHub Pages


Workaround to embed Iframe in GitHub

As a workaround, you can add a linkable image for your Iframe, video, map ..... etc using the below code.

[![Title](Image URL)](Link URL)

Example

[![Follow Mohamed El-Qassas GitHub](https://avatars.githubusercontent.com/u/49816567?s=96&v=4)](https://github.com/melqassas/)

Output

Follow Mohamed El-Qassas GitHub

If you don’t ask, the answer is always NO!
...