How to embed an image or video in Anki?

I want to embed an image or YouTube video in Anki without the need to download any of them. How to achieve that?

click on share and then embed < > and copy the code

go to anki, open the card, click on < > which is on the right side of the front field and paste the html code there