{"id":373,"date":"2012-02-10T19:26:45","date_gmt":"2012-02-10T19:26:45","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2012\/02\/10\/html5-video-player\/"},"modified":"2021-08-16T23:47:16","modified_gmt":"2021-08-17T03:47:16","slug":"html5-video-player","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/","title":{"rendered":"HTML5 Video Player Elements"},"content":{"rendered":"\n<p>A new element in HTML5 is the video element. The video element can be used to display a video in the browser, and it is intended to replace the object element.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Example Usage of the HTML5 Video Element<\/h2>\n\n\n\n<p>The following example code can be used to play a video on your webpage using the HTML5 video element:<\/p>\n\n\n\n<code>&lt;<strong>video src=<\/strong>'https:\/\/domain.com\/video.mp4' <strong>controls<\/strong>&gt;\nYour browser does not support the HTML5 Video Element.\n&lt;\/video&gt;<\/code>\n\n\n\n<p><\/p>\n\n\n\n<p>For more information on getting the HTML5 video to work in all browsers, please see the previous tutorial on <a href=\"\/support\/website\/using-html-5-to-add-videos\/\">Using HTML5 to add videos<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Optional HTML5 Video Attributes<\/h2>\n\n\n\n<table class=\"wp-block-table article_table\"><tbody><tr><th>Attribute<\/th><th>Description and Example Usage<\/th><\/tr><tr><td>autoplay<\/td><td>\n\t\t\t\t<p>Determines if the video will play automatically<\/p>\n\t\t\t\t<code>&lt;video src='https:\/\/domain.com\/video.mp4' controls <strong>autoplay<\/strong>&gt;<\/code>\n\t\t\t<\/td><\/tr><tr><td>controls<\/td><td>\n\t\t\t\t<p>Determines if controls should be displayed (such as play\/pause and volume)<\/p>\n\t\t\t\t<code>&lt;video src='https:\/\/domain.com\/video.mp4' <strong>controls<\/strong>&gt;<\/code>\n\t\t\t<\/td><\/tr><tr><td>width \/ height<\/td><td>\n\t\t\t\t<p>Sets the width and height of the element<\/p>\n\t\t\t\t<code>&lt;video src='https:\/\/domain.com\/video.mp4' controls <strong>width='320' height='240'<\/strong>&gt;<\/code>\n\t\t\t<\/td><\/tr><tr><td>loop<\/td><td>\n\t\t\t\t<p>Determines if the video should loop automatically when it is finished playing<\/p>\n\t\t\t\t<code>&lt;video src='https:\/\/domain.com\/video.mp4' controls <strong>loop<\/strong>&gt;<\/code>\n\t\t\t<\/td><\/tr><tr><td>mute<\/td><td>\n\t\t\t\t<p>Determines if the video&#8217;s sound should be muted by default<\/p>\n\t\t\t\t<code>&lt;video src='https:\/\/domain.com\/video.mp4' controls <strong>muted<\/strong>&gt;<\/code>\n\t\t\t<\/td><\/tr><tr><td>poster<\/td><td>\n\t\t\t\t<p>Allows you to set an image to load. This will show while the video is downloading and before the user presses play.<\/p>\n\t\t\t\t<code>&lt;video src='https:\/\/domain.com\/video.mp4' controls <strong>poster='\/url\/to\/image.gif'<\/strong>&gt;<\/code>\n\t\t\t<\/td><\/tr><tr><td>preload<\/td><td>\n\t\t\t\t<p>Specifies if the video should begin to download automatically when the page is loaded<\/p>\n\t\t\t\t<code>&lt;video src='https:\/\/domain.com\/video.mp4' controls <strong>preload=\"none\"<\/strong>&gt;<\/code>\n\t\t\t<\/td><\/tr><\/tbody><\/table>\n","protected":false},"excerpt":{"rendered":"<p>A new element in HTML5 is the video element. The video element can be used to display a video in the browser, and it is intended to replace the object element. Example Usage of the HTML5 Video Element The following example code can be used to play a video on your webpage using the HTML5<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/\"> Read More ><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-373","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML5 Video Player Elements | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"In this tutorial, we&#039;ll show you how you can use the HTML5 video element to play a video on your webpage. We&#039;ll also list the various attributes for the video element that are available and how you can use them.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML5 Video Player Elements | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we&#039;ll show you how you can use the HTML5 video element to play a video on your webpage. We&#039;ll also list the various attributes for the video element that are available and how you can use them.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-02-10T19:26:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T03:47:16+00:00\" \/>\n<meta name=\"author\" content=\"Brad Markle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brad Markle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/\"},\"author\":{\"name\":\"Brad Markle\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\"},\"headline\":\"HTML5 Video Player Elements\",\"datePublished\":\"2012-02-10T19:26:45+00:00\",\"dateModified\":\"2021-08-17T03:47:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/\"},\"wordCount\":188,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/\",\"name\":\"HTML5 Video Player Elements | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2012-02-10T19:26:45+00:00\",\"dateModified\":\"2021-08-17T03:47:16+00:00\",\"description\":\"In this tutorial, we'll show you how you can use the HTML5 video element to play a video on your webpage. We'll also list the various attributes for the video element that are available and how you can use them.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML5 Video Player Elements\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\",\"name\":\"Brad Markle\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML5 Video Player Elements | InMotion Hosting","description":"In this tutorial, we'll show you how you can use the HTML5 video element to play a video on your webpage. We'll also list the various attributes for the video element that are available and how you can use them.","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:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/","og_locale":"en_US","og_type":"article","og_title":"HTML5 Video Player Elements | InMotion Hosting","og_description":"In this tutorial, we'll show you how you can use the HTML5 video element to play a video on your webpage. We'll also list the various attributes for the video element that are available and how you can use them.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2012-02-10T19:26:45+00:00","article_modified_time":"2021-08-17T03:47:16+00:00","author":"Brad Markle","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Brad Markle","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/"},"author":{"name":"Brad Markle","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf"},"headline":"HTML5 Video Player Elements","datePublished":"2012-02-10T19:26:45+00:00","dateModified":"2021-08-17T03:47:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/"},"wordCount":188,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/","name":"HTML5 Video Player Elements | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2012-02-10T19:26:45+00:00","dateModified":"2021-08-17T03:47:16+00:00","description":"In this tutorial, we'll show you how you can use the HTML5 video element to play a video on your webpage. We'll also list the various attributes for the video element that are available and how you can use them.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/html5-video-player\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"HTML5 Video Player Elements"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf","name":"Brad Markle","url":"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=373"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/373\/revisions"}],"predecessor-version":[{"id":86328,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/373\/revisions\/86328"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}