{"id":8200,"date":"2022-07-13T05:50:57","date_gmt":"2022-07-13T05:50:57","guid":{"rendered":"https:\/\/zeru.com\/blog\/?p=8200"},"modified":"2022-07-13T05:50:57","modified_gmt":"2022-07-13T05:50:57","slug":"how-to-embed-a-youtube-video-on-your-website","status":"publish","type":"post","link":"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website","title":{"rendered":"How to Embed a YouTube Video on Your Website"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_43 counter-flat ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<p class=\"ez-toc-title\">Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ed93b004bd3\" class=\"cssicon\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;direction:ltr;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><label for=\"ez-toc-cssicon-toggle-item-69ed93b004bd3\"  class=\"cssiconcheckbox\">1<\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ed93b004bd3\" ><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\/#How_to_Embed_a_YouTube_Video_on_Your_Website\" title=\"How to Embed a YouTube Video on Your Website\">How to Embed a YouTube Video on Your Website<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\/#Embedding_a_YouTube_video\" title=\"Embedding a YouTube video\">Embedding a YouTube video<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\/#Options\" title=\"Options\">Options<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\/#Parameters\" title=\"Parameters\">Parameters<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\/#Size_of_player\" title=\"Size of player\">Size of player<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"How_to_Embed_a_YouTube_Video_on_Your_Website\"><\/span>How to Embed a YouTube Video on Your Website<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>To embed a YouTube video on your website, you first need to upload the file to your web server. After this, you must edit the file with a text editor or HTML editor. Upload it manually or through FTP. When you paste the embed code into your web page, you need to make sure that the code is outside of any other line of code. The space bar is used to make room for the video.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Embedding_a_YouTube_video\"><\/span>Embedding a YouTube video<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are several different ways to embed a YouTube video on your website. First, you need to copy the video URL and paste it into your website&#8217;s main content area. Next, add a Text widget to your page or post. Visual tab is recommended over Text. Once your text widget is ready, paste the video URL into your main content area. If you want, you can also add a title to the widget.<\/p>\n<p>When you&#8217;re ready to embed the video, right-click the video to bring up a box. Select the option &#8216;Copy video URL at current time&#8217;. Paste the link into a notepad. The link will have the start and end times listed in seconds. Once you&#8217;ve selected the correct point, click the play button. You can also share the video with other people using the &#8220;share&#8221; option, which is located below the video&#8217;s bottom right corner.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Options\"><\/span>Options<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To embed a YouTube video, you must first open your browser. Then, locate the embed box on the right side of your page and click it. Then, paste the HTML code that&#8217;s inside the box into the editor area of your website. Use a free tool to customize the code. If you don&#8217;t know what HTML is, this article will explain what it is and how to use it.<\/p>\n<p>When adding a YouTube video to a website, make sure to choose one that includes complex analytics. These analytics should show complex data, such as the number of viewers and the average duration of video viewing. This way, you can make strategic decisions regarding video behavior. Remember that YouTube users are not limited to its own platform &#8211; you can embed a video from other sources if you wish. But embedding a video on your site will exhaust your server&#8217;s bandwidth.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Parameters\"><\/span>Parameters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are many parameters you can use for embedding a YouTube video. The parameters will allow you to control many aspects of the video, including its size and playback options. These parameters can be found in the Reference Doc for YouTube. The parameters you can use are:<\/p>\n<p>You can use these parameters to customize how the player looks and behaves. The autohide parameter is set to two, which indicates whether the player controls will hide after the video has started or remain visible. The autoplay parameter sets the initial time the video starts playing. The autoplay parameter indicates whether or not you want the controls to display automatically. By default, videos play in full screen mode, but you can also embed them in rich text.<\/p>\n<p>One of the options you can use is to hide the YouTube player controls. Unlike other video hosting services, YouTube does not make it easy to hide their logo or embedded player controls. Many people want to embed a YouTube video into their site, but don&#8217;t want to display the logo or the unrelated videos after it finishes. To get around this, you can change the code to exclude the player controls and remove the YouTube branding.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Size_of_player\"><\/span>Size of player<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You may want to use a custom size for the player when embedding a YouTube video in your website. The size of the player is determined by the width and height of the container that you choose. There are other options available in the player settings, including the aspect ratio, frameborder value, and how wide the video will display. For more information, see Size of player when embedding YouTube video. But be aware that the dimensions you choose should be the maximum width and height of the player.<\/p>\n<p>The first step is to edit the object width=&#8221;425&#8243; and &#8220;height=&#8221;350&#8221; fields. Once you&#8217;ve made those changes, you can paste the video code into your website. Remember to use a proportional width and height for the player to work properly. Otherwise, it won&#8217;t appear on your website properly. To resize the player, you&#8217;ll need to multiply the width by 0.8235.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Embed a YouTube Video on Your Website To embed a YouTube video on your website, you first need to upload the file to your web server. After this, you must edit the file with a text editor or HTML editor. Upload it manually or through FTP. When you paste the embed code into [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":8607,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.7 (Yoast SEO v21.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Embed a YouTube Video on Your Website - Zeru<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Embed a YouTube Video on Your Website\" \/>\n<meta property=\"og:description\" content=\"How to Embed a YouTube Video on Your Website To embed a YouTube video on your website, you first need to upload the file to your web server. After this, you must edit the file with a text editor or HTML editor. Upload it manually or through FTP. When you paste the embed code into [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\" \/>\n<meta property=\"og:site_name\" content=\"Zeru\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-13T05:50:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/zeru.com\/blog\/wp-content\/uploads\/How-to-Embed-a-YouTube-Video-on-Your-Website_8200.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"920\" \/>\n\t<meta property=\"og:image:height\" content=\"480\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Lizzie Yates\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lizzie Yates\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\",\"url\":\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\",\"name\":\"How to Embed a YouTube Video on Your Website - Zeru\",\"isPartOf\":{\"@id\":\"https:\/\/zeru.com\/blog\/#website\"},\"datePublished\":\"2022-07-13T05:50:57+00:00\",\"dateModified\":\"2022-07-13T05:50:57+00:00\",\"author\":{\"@id\":\"https:\/\/zeru.com\/blog\/#\/schema\/person\/61005d9ec00b94bc50fbaf11b78aa55e\"},\"breadcrumb\":{\"@id\":\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zeru.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Embed a YouTube Video on Your Website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zeru.com\/blog\/#website\",\"url\":\"https:\/\/zeru.com\/blog\/\",\"name\":\"Zeru\",\"description\":\"Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zeru.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zeru.com\/blog\/#\/schema\/person\/61005d9ec00b94bc50fbaf11b78aa55e\",\"name\":\"Lizzie Yates\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zeru.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/zeru.com\/blog\/wp-content\/uploads\/19-150x150.jpg\",\"contentUrl\":\"https:\/\/zeru.com\/blog\/wp-content\/uploads\/19-150x150.jpg\",\"caption\":\"Lizzie Yates\"},\"description\":\"A content marketing strategist with the Zeru team for a little over 5 years, Lizzie Yates specializes in everything digital media with a particular focus on social media and technology. Her passion? To follow how the social media sites like Instagram, YouTube, Facebook, Twitter, and TikTok are maturing over time, and what businesses can do to keep up. She shares her insights on our blog in a true outpouring of knowledge and expertise. Her knowledge about technology and social media is vast, and she is always willing to share her insights with businesses to help them stay up-to-date with the latest trends.\",\"url\":\"https:\/\/zeru.com\/blog\/author\/writer\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Embed a YouTube Video on Your Website - Zeru","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:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website","og_locale":"en_US","og_type":"article","og_title":"How to Embed a YouTube Video on Your Website","og_description":"How to Embed a YouTube Video on Your Website To embed a YouTube video on your website, you first need to upload the file to your web server. After this, you must edit the file with a text editor or HTML editor. Upload it manually or through FTP. When you paste the embed code into [&hellip;]","og_url":"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website","og_site_name":"Zeru","article_published_time":"2022-07-13T05:50:57+00:00","og_image":[{"width":920,"height":480,"url":"https:\/\/zeru.com\/blog\/wp-content\/uploads\/How-to-Embed-a-YouTube-Video-on-Your-Website_8200.jpg","type":"image\/jpeg"}],"author":"Lizzie Yates","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Lizzie Yates","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website","url":"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website","name":"How to Embed a YouTube Video on Your Website - Zeru","isPartOf":{"@id":"https:\/\/zeru.com\/blog\/#website"},"datePublished":"2022-07-13T05:50:57+00:00","dateModified":"2022-07-13T05:50:57+00:00","author":{"@id":"https:\/\/zeru.com\/blog\/#\/schema\/person\/61005d9ec00b94bc50fbaf11b78aa55e"},"breadcrumb":{"@id":"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zeru.com\/blog\/how-to-embed-a-youtube-video-on-your-website#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zeru.com\/blog"},{"@type":"ListItem","position":2,"name":"How to Embed a YouTube Video on Your Website"}]},{"@type":"WebSite","@id":"https:\/\/zeru.com\/blog\/#website","url":"https:\/\/zeru.com\/blog\/","name":"Zeru","description":"Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zeru.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zeru.com\/blog\/#\/schema\/person\/61005d9ec00b94bc50fbaf11b78aa55e","name":"Lizzie Yates","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zeru.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/zeru.com\/blog\/wp-content\/uploads\/19-150x150.jpg","contentUrl":"https:\/\/zeru.com\/blog\/wp-content\/uploads\/19-150x150.jpg","caption":"Lizzie Yates"},"description":"A content marketing strategist with the Zeru team for a little over 5 years, Lizzie Yates specializes in everything digital media with a particular focus on social media and technology. Her passion? To follow how the social media sites like Instagram, YouTube, Facebook, Twitter, and TikTok are maturing over time, and what businesses can do to keep up. She shares her insights on our blog in a true outpouring of knowledge and expertise. Her knowledge about technology and social media is vast, and she is always willing to share her insights with businesses to help them stay up-to-date with the latest trends.","url":"https:\/\/zeru.com\/blog\/author\/writer"}]}},"_links":{"self":[{"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/posts\/8200"}],"collection":[{"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/comments?post=8200"}],"version-history":[{"count":1,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/posts\/8200\/revisions"}],"predecessor-version":[{"id":8201,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/posts\/8200\/revisions\/8201"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/media\/8607"}],"wp:attachment":[{"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/media?parent=8200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/categories?post=8200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/tags?post=8200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}