# Using shortcode inside html file

**URL:** https://discourse.gohugo.io/t/using-shortcode-inside-html-file/31809
**Category:** support
**Created:** [March 17, 2021, 6:21pm UTC](https://discourse.gohugo.io/t/using-shortcode-inside-html-file/31809 "2021-03-17T18:21:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Iurii\_Vatazhyshyn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/iurii_vatazhyshyn/32/13838_2.png) [@Iurii\_Vatazhyshyn](https://discourse.gohugo.io/u/Iurii_Vatazhyshyn)
#### Post date: [March 17, 2021, 6:21pm UTC](https://discourse.gohugo.io/t/using-shortcode-inside-html-file/31809/1 "2021-03-17T18:21:10Z")

</div>

I have index.html file in themes/some-theme/layouts

I want to use shortcode-example from docs {{\< youtube w7Ft2ymGmfc \>}}

```
<body>
  <section class="home-content">
    <div class="home-containers">
      {{ .Content }}
    </div>
    {{< youtube w7Ft2ymGmfc >}}
  </section>
</body>

```

But, I’m getting an error “themes\iguazio-docs-theme\layouts\index.html:23:1”: parse failed: template: index.html:6: unexpected “\<” in command"

I don’t understand my mistake. Please help me.

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [March 18, 2021, 1:13am UTC](https://discourse.gohugo.io/t/using-shortcode-inside-html-file/31809/2 "2021-03-18T01:13:49Z")

</div>

See [https://gohugo.io/content-management/shortcodes/](https://gohugo.io/content-management/shortcodes/)

> Shortcodes are simple snippets **inside your content files**

Shortcodes cannot be used within templates, only within content (typically markdown files).
