{"id":9345,"date":"2022-10-06T05:01:45","date_gmt":"2022-10-06T05:01:45","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=9345"},"modified":"2022-10-06T05:01:45","modified_gmt":"2022-10-06T05:01:45","slug":"html-controls-attribute","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/10\/06\/html-controls-attribute\/","title":{"rendered":"HTML controls Attribute"},"content":{"rendered":"\n<p>The HTML\u00a0controls\u00a0attribute is a\u00a0boolean\u00a0attribute and specifies that the audio\/video controls must be displayed. It is new in\u00a0HTML5.<\/p>\n\n\n\n<p>You can use the\u00a0controls\u00a0attribute on the following elements:\u00a0&lt;audio>\u00a0and\u00a0&lt;video>.<\/p>\n\n\n\n<p>For the &lt;audio&gt; tag, the&nbsp;controls&nbsp;attribute includes:<\/p>\n\n\n\n<ul><li>Play<\/li><li>Pause<\/li><li>Seeking<\/li><li>Volume<\/li><\/ul>\n\n\n\n<p>For the &lt;video&gt; tag, the&nbsp;controls&nbsp;attribute includes:<\/p>\n\n\n\n<ul><li>Play<\/li><li>Pause<\/li><li>Seeking<\/li><li>Volume<\/li><li>Fullscreen toggle<\/li><li>Captions\/Subtitles<\/li><li>Track<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"syntax-3\">Syntax<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;tag controls&gt;&lt;\/tag&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-span-class-attribute-controls-span-attribute-used-on-the-lt-audio-gt-element-5\">Example of the HTML&nbsp;controls&nbsp;attribute used on the &lt;audio&gt; element:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;audio controls src=\"\/build\/audios\/audio.mp3\"&gt;\n      Your browser does not support the audio element.\n    &lt;\/audio&gt;\n    &lt;p&gt;Click the play button&lt;\/p&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-span-class-attribute-controls-span-attribute-used-on-the-lt-video-gt-element-7\">Example of the HTML\u00a0controls\u00a0attribute used on the &lt;video> element:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n    &lt;style&gt;\n      video {\n        width: 300px;\n        height: 220px;\n        border: 1px solid #666;\n      }\n    &lt;\/style&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;video controls&gt;\n      &lt;source src=\"http:\/\/techslides.com\/demos\/sample-videos\/small.ogv\" type=video\/ogg&gt;\n      &lt;source src=\"\/build\/videos\/arcnet.io(7-sec).mp4\" type=video\/mp4&gt;\n    &lt;\/video&gt;\n    &lt;p&gt;Some information about video&lt;\/p&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The HTML\u00a0controls\u00a0attribute is a\u00a0boolean\u00a0attribute and specifies that the audio\/video controls must be displayed. It is new in\u00a0HTML5. You can use the\u00a0controls\u00a0attribute on the following elements:\u00a0&lt;audio>\u00a0and\u00a0&lt;video>. For the &lt;audio&gt; tag, the&nbsp;controls&nbsp;attribute includes: Play Pause Seeking Volume For the &lt;video&gt; tag, the&nbsp;controls&nbsp;attribute includes: Play Pause Seeking Volume Fullscreen toggle Captions\/Subtitles Track Syntax Example of the HTML&nbsp;controls&nbsp;attribute used [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[327],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9345"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=9345"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9345\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=9345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=9345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=9345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}