# Embed

**URL:** <https://community.hubspot.com/t/embed/98920>\
**Category:** CMS Development\
**Tags:** free\
**Created:** [January 29, 2024, 7:42pm UTC](https://community.hubspot.com/t/embed/98920 "2024-01-29T19:42:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [January 29, 2024, 7:42pm UTC](https://community.hubspot.com/t/embed/98920/1 "2024-01-29T19:42:17Z")

</div>

Whenever I try to embed code, it doesn’t show up in the preview and it doesn’t insert.

```lia-code-sample
<!DOCTYPE html>
<html>
<head>
<title>Main</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8"/>
<style>
 .card{
 width: 260px;
 height: 260px;
 background-image: url("Images/ASL.png");
 background-repeat: no-repeat;
 float: left;
 margin:20px;
 }
 .card:hover{
 width: 260px;
 height: 260px;
 background-image: url("Images/Ear.png");
 background-repeat: no-repeat;
 float: left;
 margin:20px;
 }
 video{
 width: 400px;
 height: auto;
 }
</style>
<body>
<div class="card"></div>
</body>
</html>

```

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 30, 2024, 6:55pm UTC](https://community.hubspot.com/t/embed/98920/2 "2024-01-30T18:55:10Z")

</div>

Hey, @APanzica 👋 Welcome to the community.

Can you tell us more about your project? Are you adding this code to a HubSpot-created page? Or on a custom-coded website you are creating outside our CMS? If you are using HubSpot, where in-app are you trying to add this code?

Looking at your code. I took it and dropped it into VS Code along with a few of my own test images. It loads the card and switches images when hovering as expected.

Thanks for the additional information! — Jaycee
