title: How do I correctly embed an <iframe> in Blazor? (Youtube)
body: <p>A standard youtube embedded video using an <code>&lt;iframe&gt;</code> container on my Blazor page doesn't load correctly. Nothing is loaded. </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;iframe width='560' height='315' src='https://www.youtube.com/embed/m8e-FF8MsqU' frameborder='0' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>In my page the link is actually linked with a <code>@video</code> link as such, but the result is the same.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;iframe width='560' height='315' src='https://www.youtube.com/embed/@video' frameborder='0' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allowfullscreen&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Looking at the source, a mostly empty <code>&lt;html&gt;</code> structure is built under <code>#document</code>. </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;link type="text/css" id="dark-mode" rel="stylesheet"&gt;&lt;style type="text/css" id="dark-mode-custom-style"&gt;&lt;/style&gt;&lt;/html&gt;
  </code></pre>
  
  <p>While in a normal HTML page the structure is filled with the content from Youtube. (Shortened)</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;  &lt;html lang="en" dir="ltr" data-cast-api-enabled="true"&gt;
  &lt;head&gt;&lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;&lt;style name="www-roboto" &gt;@font-face{font-family:'Roboto';font-style:italic;font-weight:500;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(//fonts.gstatic.com/s/roboto/v18/KFOjCnqEu92Fr1Mu51S7ACc3CsTKlA.woff2)format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
  </code></pre>
  
  <p>How do I correctly embed an  so that it works as intended in Blazor?</p>