# HTML video

### About HTML Video Element

Summary: The [HTML Video Element](https://help.pagefly.io/manual/html-video-element/) is designed to make your page more attractive in order to increase the conversion rate. You can use this element to share a video on your website or blog.

Before jumping to the detailed steps, you can watch this video below:

{% embed url="<https://youtu.be/zKqqb2DUEWY>" %}

### How To Access HTML Video Element

The HTML video element can be found by clicking in the Elements icon on the left toolbar.

* **Step 1**: Click on the Elements icon which will open the list of elements
* **Step 2**: In the PageFly’s element tab, click on the “**HTML video**”
* **Step 3**: Drag and drop the element into the page editor

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-3da56fdabfe2616217265330a622ccc855168b35%2FAD_4nXdw4xK4Y6GkRBsSFi82F6fbX6Bjo5a-L42zbevXRamtWkdrziwMKdjdHAVnCDpj4g7iiDSdqED49Xu3rr67g7h6swY6u05Yhx1_dwclgsQp0IaYraav-GkzUtUq-ssFt9Uj_sCr6zhIgGYj9h7t8Qkey1hDKn8DPMkkC3yb7Q3Z9lA.png?alt=media)

### How To Configure For HTML Video Element

This element comes with plenty of different parameters allowing you to fine-tune content appearance reaching the best possible conversion rate.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-e2db4a6ea1369af1ea6f0f9b1e3ae8235c32c5fd%2FAD_4nXc5EfPwSyMZlR4zgD8d-c9dQj4mFYAiQr9_0VUigU2C5e4vxsj58jItQENGdZTZiMrFoAuaheiiqGoiGiVFB8SLVapwXN-WYTM5IW_JjFnZ8o1mkZDJxczjqbDkzjuP9QSv0Gl-sDucemCOJX7Inwkey1hDKn8DPMkkC3yb7Q3Z9lA.png?alt=media)

Select the HTML Video element you’ve added to your page and navigate to the General and Styling tabs to access its configurations.

{% hint style="warning" %}
**Important note**:

* The file size must be less than 10MB.
* Supported video formats include MP4, WebM, and Ogg.
  {% endhint %}

#### General Configurations

Navigate to the General tab for overall settings. Review the main settings for HTML video elements below. For details on Visibility, Attributes, and Animation settings, refer to [this guide](https://help.pagefly.io/manual/elements-general-settings/).

**HTML Video Source**

You can upload a video or embed a URL by clicking in the Reselect button.

* Add videos from your computer

Click on the “**Select video**” button, and then click on the “**Add videos**” button or you can drag and drop the video into the dotted-line area.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-f51320f8d8f3539e3eb7b9a16cefe8dc100407c4%2FAD_4nXdGhicy2E6KSYB8l4ANfDqxlphkPNq2mj54nKP3CAkyuhf4918kRLmJeby8ugLggetmtsPdZq6dPzL0PbV91sBNJksDchUxTsKDrQXaHEsu4I11r3wUmkg7GHnoTmYg5apiTk13woA5GxAire1ymgkey1hDKn8DPMkkC3yb7Q3Z9lA.gif?alt=media)

* Add video from URL

To add video from a URL, in the Shopify left navigation, head over to **Content > Files**, and click on the link button to copy the link.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-3374d4e52b645144c52bec13d0ff6a1ee47a3226%2FAD_4nXd4OMqDiXvn8Ua8sfjtF-sqzRerzT5i14jUANEMLagl6Xka_iWhWFqgsEp_M4h4sEWGunQ9u9CrJZWWmR9T_KKcbtNJAtlWG1gh12P14q-IuJkijVuFv8nPiOmKxuWqBBgZuvrmswTFQqJvhEwmAwkey1hDKn8DPMkkC3yb7Q3Z9lA.png?alt=media)

Then, in the PageFly editor, click **Select video > Add from URL** and paste the URL to the Video URL to add video.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-6c1aeac1e8a3a18e852deb4f115ad4240bb4b2a2%2FAD_4nXdwMtxWO7jiM-8hUdqs3YK95nhHDDAeyQZHyMDweAucScBu9u3VvBt-BT3XtxzeukjK_n6BUdOs7j0tmWwlTVfPLRJl3zQP8vInZIjkI2Z7n5XxnXuoavUbESc82w-mhzYxXAGl_kx3tVt9f54A8gkey1hDKn8DPMkkC3yb7Q3Z9lA.gif?alt=media)

* Add video from Media files

Next to the URL icon, you can click on the "**Media files**" option, which will take you to a list of available videos.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-7d0aa7ab04495b380a100131192f7524935c8c9f%2FAD_4nXfZgWZb8L4JK-ANsVIBerPlmaL0QT5C4UmnO7vg7oj3rziIhuUJWg0dV_eIRxgZXETRV7GJ2oAyBMyb1n5edQ9vKZn-lbZAE14u50jlD-Mcqw1MeCitt_-EvGvL9p4EygiqGoVpQ25C5Q_8lYRFkey1hDKn8DPMkkC3yb7Q3Z9lA.gif?alt=media)

If you want to remove the video file or URL from the element, just need to click on the “**Clear**” button here and you can select another video for this element.

**Show Controls**

You can choose to show the video player control or hide it by selecting or deselecting this option.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-7bccf26d7eaf873c5d6c5be05f863b66fa75e38f%2FAD_4nXfMVpu7JDHdOWV9FbTNzuQ1Sy4xbgTh_DcnNKEpeOQisdTsrJCuKVdkFET4oEWdkMQeCrwrq0yrpfDq4EZz-0j6WK1SUZ1XghKUZCEGTA06M-S9e10bdb-7WsV8E_jCpXVFqz1GFGugxNr7mmYwRgkey1hDKn8DPMkkC3yb7Q3Z9lA.gif?alt=media)

**Enable Loop**

When this parameter has been turned on, the video will play constantly non-stop in a loop. You can check this function on Liveview.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-97258eccd109b5804fd8e4f062243c6d49a629fe%2FAD_4nXcHBW4PTgomBaFFIKJ656rgoGQmzR0T-mWgwlpT_mQT81srlq_SISVHWh-TrGFocqwcjoFwQYzwBUvcSU-p5c6kjTBVHACQ2HyOj_Mkoson_O3YMvLsyUfpbmVYGC0GbStBOxHml048klhNaxXlDwkey1hDKn8DPMkkC3yb7Q3Z9lA.png?alt=media)

**Enable Autoplay**

You can turn on/off the autoplay feature by selecting or deselecting this parameter.

Please keep in mind that the autoplay function might not work in the following cases:

* The user configured his browser to prevent that action or parameter “**Mute Video**” from being turned off.
* Users use the iPhone with Low Power Mode and access your website by Safari browser, the Enable Autoplay feature will not be activated.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-afa5d92b376471c79d00e30a5d7e6531fb6fd938%2FAD_4nXd84yHRNIFdKvLFPehg9Ka6F-Ww_9EG0r_XEWY4HKwAFTxLhvPVTr0OhA5K9KIuL6trbqfiSn2B6NlVdoOi8t_oonL5v0Es7j7GTAk_OX5idwz4S-iPaMaeDpL9unBS1a5jUhKap7JdrbQ6xoCQkey1hDKn8DPMkkC3yb7Q3Z9lA.png?alt=media)

**Mute Video**

Switch between Yes or No to turn off the video’s sound.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-cccc80c1914fed93a6f8472a601061c3638253f2%2FAD_4nXerQc0cjjmF1gWm9v6BQbD3E_0cT8_DhyqQLSK8M2XMlNQkvegDeiF9WSSVSjZGfApIiWiZHJWxDGvZtgvjVrnTdR85BJpR0d0_NARaaAbfg0cdZNtfYvSZrvJ5ZOjKtLc9QB4HMz5IQYTzliFakey1hDKn8DPMkkC3yb7Q3Z9lA.png?alt=media)

**Content Loading**

You can customize how the video will load with these two options:

* Lazy loading: Videos will load only when they appear on the user’s screen, saving bandwidth and speeding up the initial page load.
* Standard: All videos load immediately when the page opens, ensuring everything is ready right away. This setting will improve the user experience.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-5f0fad193c1a44612b87e3c861401dbdcd1e8071%2FAD_4nXdPRK1nvPrQtaNITrv_GrHDaL1BKF1WhfGUh-IgHKYv3FrjTzqaJzH4c9keoKXSIXM4Eqf69UKRC1rdCS8MwwRas879E79Cg_3WVWJ604l-MH_lJcc4exV_LP7l5VZPMWCJ5Tn6AYYK_j2W92Wkey1hDKn8DPMkkC3yb7Q3Z9lA.png?alt=media)

**Cover Image Source**

Set an image as the video thumbnail cover by hitting “**Select image**”, choose the image you want and click “**Done**”.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-e8a56145093b1002350fea9c19a91594d14e5328%2FAD_4nXfek12yi1gsH4QFoFPgYVk9JAqm58NN2M0akho3JTw2mBN4KQ5gPiU_wmwref46WcMCyBIzFzLFVT9pOgbX4ouweCzC3jSyq-s6A3zDqD6psFKvovxD38AN2Y9uMjRFxkNoiU9qwgGJDYMPNl7NgAkey1hDKn8DPMkkC3yb7Q3Z9lA.gif?alt=media)

**Image Quality**

This provides you with different values that help you customize image quality and optimize performance across all devices. Each value adjusts the image dimensions based on predefined min-width and max-width values :

* Auto (375px - 2048px)
* Original (original size): Leave the original quality
* Thumbnail: 375px
* Low (375px - 550px)
* Medium (375px-1280px)
* High (375px-1920px)
* Very high (375px-2560px)
* Ultra (375px-3840px)

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-45069176dd931ce9e2a039be246b2c2976330910%2FAD_4nXerPxJG3s_Ot5KL_IDKvtqTm2z-iPVB5R3VUabp6s32TmkLSr64VzF82FXWWnVvzrRs4GDRb85P2W0hGry5PWZ5nW3QBxAE0e9UsJjCCmVAAZR2G8b5H6DBNu9AG-3uZ1K9QRYzWUJORrxNOcsgcAkeyYFlGBC_g5R12UizhIQFdXA.png?alt=media)

**Cover Image Loading**

To improve your store’s loading speed, select one of the following Cover Image Loading options:

* Lazy Load: Loads the image only when it comes into view, improving initial load times.
* Preload: Loads the image early to make it available faster.
* Standard: Loads the image normally, along with the rest of the content.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-88af1d3c2945a325c4da3ca4dd461207d3507ee4%2FAD_4nXfGyBY3luaFVpOe7TZ5ZZjU8Miaof45AzxTuDM2XskRByHoxFQ8Owi10bIUfG3RdI5nqoawlOoWVIZlW73vrtRL6yYj2L6O8Ab-7-oWnMQdGwQX9eY7stpTQm8Uo7H_QcwVxp5QrdLA7B0U2wtVEgkeyYFlGBC_g5R12UizhIQFdXA.png?alt=media)

#### Styling Configurations

Navigate to the Styling tab to customize how the HTML Video element looks. You can check more information about settings in this tab using this [Element Style Settings guide](https://help.pagefly.io/manual/elements-style-settings/).

### Use Cases

#### Align The HTML Video In The Middle Of Its Container

If you want to place the HTML in the middle of its container, go to **Styling > Spacing > Padding** and enter a number in the center margin. The larger the number, the bigger the space around the video would be.

![](https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fgit-blob-b77adb738bd089881e5a1293e60797b4160a4183%2FAD_4nXcSJFDELDoAGxyHbMEzCQAe2zmG960ZfVfsEOow73hvq1HVBAtyUMjGtpKmmVo4glSK0IO_gUaLR_3Hjk269p350gmGhscitYdDXDStdS_E-vZFqxF8dY-CjzHho_28oZHz5KaKm4nss40E8VSwOQkey1hDKn8DPMkkC3yb7Q3Z9lA.gif?alt=media)

#### Add Border To HTML Video

In order to make your HTML stand out from other elements, give it more noticeable edges by adding borders. There are three default border styles:

| Solid  | ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfIS5Hi62zTy7HicrmaX-pGovjnG5xDNjTRoYWojO6_47QKu_5emuQ1ObeK6Ssh6IYIZBfFYyerA1ealIX65-GUAhTWogoZTJ7shBGJUBpP7hFeJIhcSFP4wl671AIyXZokWQDkI-AI9llWtggfKtc1gESk?key=1hDKn8DPMkkC3yb7Q3Z9lA) |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Dotted | ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfotDmuZGSOpH4j5aKYckvZt4ONoVwtXVtW2sbBFyMjJfkeOTIfvWg4OOYMJUG4M-M8N9Elje21nsz6C2O3a3isU9ojk0cdtwKmrIE1tsIgU3rFFHUGkOUo5KMmwpkoL3Ow_djNE1dpUmaTmoCFdLIUsaNh?key=1hDKn8DPMkkC3yb7Q3Z9lA) |
| Dash   | ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf8YnwSxX2kFUuIkGoJVLTzPEL8KqlXPUbPp6Kb3Bp6aU7B92RI3Xl1CrDs7pvD-vevIoZmBSQ75QAejj1TlmjU9QFCoD6mqs2zaz1yQizJPpDnzTX7Po0NetB1YXq7gSmnsO46MHITusU10urz7bdsscDm?key=1hDKn8DPMkkC3yb7Q3Z9lA) |

### Frequently Asked Questions

**1. What is the maximum file size for HTML Video?**

The maximum file size for HTML video is 10 MB.

**2. What are the supported formats for HTML Video?**

Supported video formats include MP4, WebM, and Ogg.

**3. What is HTML Video?**

The HTML Video Element is designed to make your page more attractive, to increase the conversion rate. You can use this element to share a video on your website or blog.

**4. What is the difference between HTML Video element and Youtube element?**

You can use this Video Element to upload and use videos on your website without a YouTube account. However, there are file size restrictions to ensure that the videos play smoothly and that your website loads quickly.

**5. What are best practices for using HTML Video?**

* Use high-quality videos that are relevant to your products or brand.
* Consider offering your videos in multiple formats (e.g., MP4, WebM) to ensure wider browser compatibility and playback success.
* Optimize your video files for faster loading times. Large video files can slow down your website, impacting user experience and SEO.

### Additional Resources

* [YouTube and HTML videos do not autoplay](https://help.pagefly.io/manual/youtube-html-videos-do-not-autoplay-issue/)
* [How to Use VideoWise – Shoppable Videos Element with PageFly](https://help.pagefly.io/manual/videowise-shoppable-videos-element/)
