{"id":1592,"date":"2022-03-23T11:34:00","date_gmt":"2022-03-23T09:34:00","guid":{"rendered":"https:\/\/html-online.com\/articles\/?p=1592"},"modified":"2024-09-13T11:34:57","modified_gmt":"2024-09-13T08:34:57","slug":"embed-website-video","status":"publish","type":"post","link":"https:\/\/html-online.com\/articles\/embed-website-video\/","title":{"rendered":"How to Add a Video to Your Website?"},"content":{"rendered":"<p>The greatest majority of videos on the Internet is, of course, entertainment content. But this doesn\u2019t prevent the use of video for informational and commercial purposes.<\/p>\n<p class=\"aligncenter\"><a target=\"_blank\" href=\"https:\/\/www.youtube.com\/watch?v=_OPkGnzBsN8\" rel=\"noopener\"><img decoding=\"async\" src=\"\/articles\/wp-content\/uploads\/2021\/08\/2-share-youtube-embed-code-iframe.jpg\" alt=\"share youtube embed code iframe\"><\/a><\/p>\n<p><!--more--><\/p>\n<p>Large online stores adopted video content many years ago. And this is not surprising: according to <a target=\"_blank\" rel=\"external nofollow noopener\" href=\"https:\/\/www.wordstream.com\/blog\/ws\/2017\/03\/08\/video-marketing-statistics#:~:text=The%20average%20CVR%20for%20websites,%2Dthrough%20rate%20by%2096%25.\">video marketing stats<\/a>, 64% of consumers make a purchase after watching branded social videos.<\/p>\n<p>Now all significant products are accompanied by a demonstrational video. It also perfectly complements the text description and photo. Entrepreneurs use reviews, news, advertising videos, distribute them on social media and embed them into website pages.<\/p>\n<p>But if there can be no problems in posting, then embedding a video <a href=\"https:\/\/htmliframe.com\/\" rel=\"nofollow\">in an HTML iframe<\/a> that will attract traffic, <a target=\"_blank\" rel=\"external nofollow noopener\" href=\"https:\/\/sproutsocial.com\/insights\/social-media-viral-video\/\">become viral<\/a>&nbsp;and drive sales may confuse. Today we will figure out how you can add a video to the website.<\/p>\n<h2>How to Place a YouTube Video on the Website?<\/h2>\n<p>It\u2019s very simple. First, you need to go to a popular video site and find the video that you need to embed on your page. There are a couple of buttons underneath. We need <a href=\"\/articles\/dynamic-social-media-share-widget-addthis-alternative\/\">the &#8220;<strong>Share<\/strong>&#8221; button<\/a>. Here we select the \u201c<strong>Embed<\/strong>\u201d option, and YouTube itself will show the video <a href=\"\/\">HTML code<\/a> that must be inserted on your page to display it. By the way, you can customize the video so that it plays from a certain point on your website.<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"\/articles\/wp-content\/uploads\/2021\/08\/1-embed-youtube-video-website.jpg\" alt=\"embed youtube video in website\"><\/p>\n<p>There are several attributes in the code: <em>width<\/em>&nbsp;and <em>height<\/em>, and <em>allowfullscreen<\/em>&nbsp;that allows the content to be expanded to the entire screen. <em>Frameborder <\/em>stands for the frame on the website, and <em>src<\/em>&nbsp;is the path to the YouTube video.<\/p>\n<p>Thus, you just need to know the address of a specific video, copy it, and enter it into the code.<\/p>\n<p>This method is very easy, but with its own flaws. The problem is that if you insert someone else&#8217;s video, then over time, it may be removed by the author, and your website will indicate that it\u2019s not available. That\u2019s why it\u2019s better to create your own channel and embed your own videos.<\/p>\n<h2>Uploading a Video From a Computer Without Video Hosting<\/h2>\n<p>This option is more time-consuming. You need to install a Flash or YouTube player that will play the content. Then work with the tags on the website. In practice it looks like this: <em>script type = &#8220;text \/ javascript&#8221; src = &#8220;player name \/ player name-program version.min.js&#8221;.<\/em>&nbsp;Then enter extra codes with the video file address <em>http:\/\/ your site address \/ player name \/ player name-program version.swf &#8220;,wmode:&#8221; transparent &#8220;}).<\/em>&nbsp;Save the data, after which the video will be available for viewing.<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"\/articles\/wp-content\/uploads\/2021\/08\/3-upload-video-no-web-hosting.jpg\" alt=\"upload video without web hosting\"><\/p>\n<h2>Insert a Video Via HTML Code<\/h2>\n<p>In the HTML5 version, there is a video tag that allows you to insert a video on the website without any scripts, as well as play it through the built-in player.<\/p>\n<p>In a simple version, the HTML markup for placing a video file on a page looks like this:<\/p>\n<p class=\"aligncenter\"><a target=\"_blank\" rel=\"external nofollow noopener\" href=\"https:\/\/html-css-js.com\/html\/tags\/#video\"><em>&lt;video src = &#8220;video.ogv&#8221; controls&gt; &lt;\/video&gt;<\/em><\/a><\/p>\n<p>The <em>controls <\/em>attribute is responsible for the appearance of video player controls. You can add an image using the <em>poster <\/em>attribute, which the browser will use while the video is loading or until the user clicks the play button, and set the <em>height <\/em>and <em>width <\/em>of the video.<\/p>\n<p>It\u2019s also recommended to list all possible formats in the &lt;<em>source<\/em>&gt;, starting with the preferred one. You also need to specify the MIME type for each video file.<\/p>\n<p>You can also configure the <em>autoplay <\/em>attribute, which will be responsible for automatically playing the video file as soon as the page loads. Moreover, you can set the <em>loop <\/em>to provide the loop playback of a video.<\/p>\n<p>*Check other <a href=\"\/articles\/html-js-video-embed\/\">video management<\/a>&nbsp;attributes.<\/p>\n<p class=\"aligncenter\"><img decoding=\"async\" src=\"\/articles\/wp-content\/uploads\/2021\/08\/4-video-html.jpg\" alt=\"video html\"><\/p>\n<h2>Embedding Video Tips<\/h2>\n<ul>\n<li>Since each browser supports a specific codec, the video file must be hosted in several formats to ensure that video content is played in all browsers. Usually, modern browsers support the .mp4 format, but it\u2019s better to play safe.<\/li>\n<\/ul>\n<ul>\n<li>Use the <a href=\"\/articles\/best-video-editors\/\">best tools <\/a>and take care of the UX. Before you embed a video, be sure to check if everything is okay. With a long load, slurred sound, or shaky image, the user will simply leave the site, not giving you a second chance.<\/li>\n<\/ul>\n<p>Stabilize your video using <a href=\"https:\/\/www.movavi.io\/video-stabilization-software-for-windows-and-mac-en\/\">top video stabilization software for PC<\/a>, and also apply color correction, remove unnecessary elements and try to compress the clip, maintaining its quality with suitable video <a href=\"https:\/\/www.lwks.com\/\">editing software<\/a>.<\/p>\n<h2>Final Words<\/h2>\n<p>I hope this guide has helped you figure out how to download entertaining or useful video content on the Internet on your own. The main thing to remember is that ignoring videos on a website today is a kind of wastefulness because the video is the future of content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The greatest majority of videos on the Internet is, of course, entertainment content. But this doesn\u2019t prevent the use of video for informational and commercial purposes.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4],"tags":[],"class_list":["post-1592","post","type-post","status-publish","format-standard","hentry","category-articles","category-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add a Video to Your Website - Embed a YouTube Video<\/title>\n<meta name=\"description\" content=\"Find the video that you need to embed on your page. We need the Share button. Here we select the Embed option\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/html-online.com\/articles\/embed-website-video\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add a Video to Your Website - Embed a YouTube Video\" \/>\n<meta property=\"og:description\" content=\"Find the video that you need to embed on your page. We need the Share button. Here we select the Embed option\" \/>\n<meta property=\"og:url\" content=\"https:\/\/html-online.com\/articles\/embed-website-video\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Online\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/htmlcoding\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-23T09:34:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-13T08:34:57+00:00\" \/>\n<meta name=\"author\" content=\"HTML Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HTML Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/html-online.com\/articles\/embed-website-video\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/embed-website-video\/\"},\"author\":{\"name\":\"HTML Editor\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\"},\"headline\":\"How to Add a Video to Your Website?\",\"datePublished\":\"2022-03-23T09:34:00+00:00\",\"dateModified\":\"2024-09-13T08:34:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/html-online.com\/articles\/embed-website-video\/\"},\"wordCount\":801,\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"articleSection\":[\"Articles\",\"HTML\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/html-online.com\/articles\/embed-website-video\/\",\"url\":\"https:\/\/html-online.com\/articles\/embed-website-video\/\",\"name\":\"How to Add a Video to Your Website - Embed a YouTube Video\",\"isPartOf\":{\"@id\":\"https:\/\/html-online.com\/articles\/#website\"},\"datePublished\":\"2022-03-23T09:34:00+00:00\",\"dateModified\":\"2024-09-13T08:34:57+00:00\",\"description\":\"Find the video that you need to embed on your page. We need the Share button. Here we select the Embed option\",\"breadcrumb\":{\"@id\":\"https:\/\/html-online.com\/articles\/embed-website-video\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/html-online.com\/articles\/embed-website-video\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/html-online.com\/articles\/embed-website-video\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/html-online.com\/articles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add a Video to Your Website?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/html-online.com\/articles\/#website\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"name\":\"HTML Online Articles\",\"description\":\"Tips, tricks, tutorials\u2026\",\"publisher\":{\"@id\":\"https:\/\/html-online.com\/articles\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/html-online.com\/articles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/html-online.com\/articles\/#organization\",\"name\":\"HTML Online\",\"url\":\"https:\/\/html-online.com\/articles\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"contentUrl\":\"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg\",\"width\":350,\"height\":350,\"caption\":\"HTML Online\"},\"image\":{\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/htmlcoding\/\",\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d\",\"name\":\"HTML Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g\",\"caption\":\"HTML Editor\"},\"description\":\"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ferencdenes\/\",\"https:\/\/www.youtube.com\/@htmlg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add a Video to Your Website - Embed a YouTube Video","description":"Find the video that you need to embed on your page. We need the Share button. Here we select the Embed option","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/html-online.com\/articles\/embed-website-video\/","og_locale":"en_GB","og_type":"article","og_title":"How to Add a Video to Your Website - Embed a YouTube Video","og_description":"Find the video that you need to embed on your page. We need the Share button. Here we select the Embed option","og_url":"https:\/\/html-online.com\/articles\/embed-website-video\/","og_site_name":"HTML Online","article_publisher":"https:\/\/www.facebook.com\/htmlcoding\/","article_published_time":"2022-03-23T09:34:00+00:00","article_modified_time":"2024-09-13T08:34:57+00:00","author":"HTML Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"HTML Editor","Estimated reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/html-online.com\/articles\/embed-website-video\/#article","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/embed-website-video\/"},"author":{"name":"HTML Editor","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d"},"headline":"How to Add a Video to Your Website?","datePublished":"2022-03-23T09:34:00+00:00","dateModified":"2024-09-13T08:34:57+00:00","mainEntityOfPage":{"@id":"https:\/\/html-online.com\/articles\/embed-website-video\/"},"wordCount":801,"publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"articleSection":["Articles","HTML"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/html-online.com\/articles\/embed-website-video\/","url":"https:\/\/html-online.com\/articles\/embed-website-video\/","name":"How to Add a Video to Your Website - Embed a YouTube Video","isPartOf":{"@id":"https:\/\/html-online.com\/articles\/#website"},"datePublished":"2022-03-23T09:34:00+00:00","dateModified":"2024-09-13T08:34:57+00:00","description":"Find the video that you need to embed on your page. We need the Share button. Here we select the Embed option","breadcrumb":{"@id":"https:\/\/html-online.com\/articles\/embed-website-video\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/html-online.com\/articles\/embed-website-video\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/html-online.com\/articles\/embed-website-video\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/html-online.com\/articles\/"},{"@type":"ListItem","position":2,"name":"How to Add a Video to Your Website?"}]},{"@type":"WebSite","@id":"https:\/\/html-online.com\/articles\/#website","url":"https:\/\/html-online.com\/articles\/","name":"HTML Online Articles","description":"Tips, tricks, tutorials\u2026","publisher":{"@id":"https:\/\/html-online.com\/articles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/html-online.com\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/html-online.com\/articles\/#organization","name":"HTML Online","url":"https:\/\/html-online.com\/articles\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/","url":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","contentUrl":"https:\/\/html-online.com\/articles\/wp-content\/uploads\/2022\/06\/logo.jpg","width":350,"height":350,"caption":"HTML Online"},"image":{"@id":"https:\/\/html-online.com\/articles\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/htmlcoding\/","https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/channel\/UCn38Jw1sJzbjVHO95Zp0Sww"]},{"@type":"Person","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/019f9afa07f209153df0fecfc90b8c1d","name":"HTML Editor","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/html-online.com\/articles\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7c1d8f5e7f1dc3e261766a96ac50c6a907fa5c236e87ab73379c57c9114e92cd?s=96&d=mm&r=g","caption":"HTML Editor"},"description":"In 2013, while wrestling with a mountain of client articles and an uncooperative CMS, I decided enough was enough. So, I created an online HTML editor purely out of necessity (and mild frustration). What began as a tool for my own sanity quickly evolved into a gift for the world\u2014or at least for anyone trying to avoid breaking their website's code. Since then, I've shared my tech notes on my blog, which serves as both a handy reference and a digital diary of the adventures and misadventures of a coder.","sameAs":["https:\/\/www.linkedin.com\/in\/ferencdenes\/","https:\/\/www.youtube.com\/@htmlg"]}]}},"_links":{"self":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/1592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/comments?post=1592"}],"version-history":[{"count":2,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/1592\/revisions"}],"predecessor-version":[{"id":2111,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/posts\/1592\/revisions\/2111"}],"wp:attachment":[{"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/media?parent=1592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/categories?post=1592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html-online.com\/articles\/wp-json\/wp\/v2\/tags?post=1592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}