AmitDiwan has Published 10740 Articles

HTML DOM Video duration Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 04:56:21

240 Views

The HTML DOM Video duration property returns a number corresponding to the length of the video (in seconds).NOTE − For live streams it returns ‘Inf’ which is infinite because live streams have no predefined duration.SyntaxFollowing is the syntax −Returning string valuemediaObject.durationLet us see an example of HTML DOM Video duration ... Read More

HTML DOM Video preload Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 04:44:59

184 Views

The HTML DOM Video preload property returns a string corresponding to when the creator thinks the video data should load. Though sometimes this may be ignored.Default value is ‘metadata’.SyntaxFollowing is the syntax −Returning string valuemediaObject.preloadSetting preload to a stringmediaObject.preload = “auto|metadata|none”Let us see an example of HTML DOM Video preload ... Read More

HTML DOM Video readyState Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 04:43:23

247 Views

The HTML DOM Video readyState property returns a number corresponding to the current ready state of the video.SyntaxFollowing is the syntax −Returning number valuemediaObject.readyStateHere, the return value can be the following −0 (HAVE_NOTHING) depicts no information available1 (HAVE_METADATA) depicts metadata for the media is ready and video is seekable2 (HAVE_CURRENT_DATA) ... Read More

HTML DOM Video seekable Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 04:40:28

139 Views

The HTML DOM Video seekable property returns a TimeRanges object containing information about the video’s seekable range length and its start, end position.SyntaxFollowing is the syntax −Returning TimeRanges ObjectmediaObject.seekableLet us see an example of Video seekable property −ExampleLive Demo HTML DOM Video seekable    * {   ... Read More

HTML DOM Video seeking Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 04:37:59

146 Views

The HTML DOM Video seeking property returns a boolean (true/false) corresponding to whether the user is seeking (moving current playback to new position) the playing video or not.SyntaxFollowing is the syntax −Returning boolean valuemediaObject.seekingLet us see an example of HTML DOM Video seeking property −ExampleLive Demo HTML DOM ... Read More

HTML option value Attribute

AmitDiwan

AmitDiwan

Updated on 17-Feb-2021 05:46:32

443 Views

The HTML option value attribute define the value of the option HTML element which is to be sent on a server when the form is submitted in an HTML document.SyntaxFollowing is the syntax −Let us see an example of HTML option value Attribute −ExampleLive Demo    body { ... Read More

HTML reserved Attribute

AmitDiwan

AmitDiwan

Updated on 17-Feb-2021 05:37:19

404 Views

The HTML reserved attribute define that the list order in ol HTML element should be descending in an HTML document.SyntaxFollowing is the syntax −Let us see an example of HTML reserved Attribute −ExampleLive Demo    body {       color: #000;       height: 100vh;   ... Read More

HTML Text Formatting

AmitDiwan

AmitDiwan

Updated on 17-Feb-2021 05:23:29

970 Views

The HTML Text Formatting refers to the HTML elements that are designed specially for formatting content in an HTML document.SyntaxFollowing is the syntax −contentFollowing are the text formatting tags in HTML:Sr.No.Tag & Explanation1It specifies bold text in an HTML document.2It specifies emphasized text in an HTML document3It specifies italic text ... Read More

HTML Links

AmitDiwan

AmitDiwan

Updated on 17-Feb-2021 05:17:17

688 Views

The HTML Links are hyperlinks that means when you click on a link, it jump son another document.SyntaxFollowing is the syntax −Link ContentHere URL specifies the destination address and it can be either local or external address. target attribute defines where to open the linked document and it can take the following ... Read More

HTML DOM Textarea defaultValue Property

AmitDiwan

AmitDiwan

Updated on 16-Feb-2021 05:37:40

147 Views

The HTML DOM Textarea defaultValue property returns and modify the default value of a text area element in an HTML document.SyntaxFollowing is the syntax −1. Returning defaultValueobject.defaultValue2. Adding defaultValueobject.defaultValue = “text”Let us see an example of HTML DOM Textarea defaultValue Property:ExampleLive Demo    body {       ... Read More

Advertisements