HTML Articles

Page 56 of 151

HTML DOM Track label Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 144 Views

The HTML DOM Track label property sets or returns the value of the label attribute of a element. This property specifies the visible text that describes the track content, such as "English Subtitles" or "Audio Description". Syntax Following is the syntax for returning the label value − trackObject.label Following is the syntax for setting the label value − trackObject.label = labelValue Parameters labelValue − A string that specifies the user-readable title for the track. This value appears in the browser's track selection menu. Return Value Returns ...

Read More

How to Make the Text Input Non-Editable

Eesha Gandhi
Eesha Gandhi
Updated on 16-Mar-2026 5K+ Views

In an HTML document, the tag is used to represent a form input control. In most cases, the input tag is used within the element to declare input controls that allow users to enter data. Depending on the type attribute, an input field can be of various types. The input tag is a self-closing element with only attributes. Labels for the input element can be defined using the tag. By setting the appropriate type attribute, it can be used to represent text fields, checkboxes, dropdowns, buttons, and other inputs. The value attribute is used to specify ...

Read More

HTML DOM Track src Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 167 Views

The HTML DOM Track src property sets or returns the value of the src attribute of a element. This property specifies the URL of the track file that contains subtitles, captions, descriptions, chapters, or metadata for a video or audio element. Syntax Following is the syntax for getting the src property − trackObject.src Following is the syntax for setting the src property − trackObject.src = "URL" Parameters The src property accepts a string value representing the URL or path to the track file. Common track file formats include: ...

Read More

HTML DOM Video autoplay Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 250 Views

The HTML DOM Video autoplay property sets or returns a boolean value that determines whether the video element will automatically start playing when the page loads. This property corresponds to the HTML autoplay attribute on the video element. Syntax Following is the syntax for getting the autoplay property value − mediaObject.autoplay Following is the syntax for setting the autoplay property − mediaObject.autoplay = booleanValue Parameters The booleanValue parameter can be one of the following − Value Description true The video will ...

Read More

How to Make HTML dt and dd Elements Stay on the Same Line

Eesha Gandhi
Eesha Gandhi
Updated on 16-Mar-2026 2K+ Views

HTML Description List or Definition List displays elements in dictionary format. The and tags are used together within the tag to define terms and their descriptions. By default, and elements display on separate lines, but CSS can be used to make them appear side by side on the same line. Default Description List Behavior Let us first see how description lists appear by default − Default Description List Programming Languages ...

Read More

How to Display Ellipsis in the span Element Having Hidden Overflow?

Eesha Gandhi
Eesha Gandhi
Updated on 16-Mar-2026 2K+ Views

The element is a generic inline container used for styling text portions and grouping inline content. When text content within a element overflows its container boundaries, it can disrupt the layout. The ellipsis (...) provides a visual indicator that text has been truncated, maintaining clean layout while showing that more content exists. Displaying ellipsis in a span element requires combining CSS properties for overflow handling and text truncation. This technique is essential for responsive designs where text must fit within fixed-width containers. Syntax Following is the basic syntax for a span element − ...

Read More

HTML DOM Video canPlayType( ) Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 227 Views

The HTML DOM Video canPlayType() method returns a string indicating whether the browser can play the specified video type. This method helps determine video format compatibility before attempting playback, allowing developers to provide fallback options or choose the most suitable video format. Syntax Following is the syntax for the canPlayType() method − videoObject.canPlayType(type) Parameters The method accepts one parameter − type − A string specifying the MIME type of the video format to test (e.g., "video/mp4", "video/webm", "video/ogg"). Return Value The canPlayType() method returns one of three possible ...

Read More

HTML DOM Video controls Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 229 Views

The HTML DOM Video controls property returns or sets a boolean value that determines whether the video's standard playback controls (play, pause, volume, etc.) are displayed to the user. Syntax Following is the syntax for returning the controls property − mediaObject.controls Following is the syntax for setting the controls property − mediaObject.controls = booleanValue Parameters The booleanValue can be one of the following − Value Description true The video will display standard controls (play, pause, volume, progress bar, etc.) ...

Read More

HTML DOM Video load( ) Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 232 Views

The HTML DOM Video load() method is used to reload the video element after modifying its attributes such as the src or playback settings. When properties like defaultPlaybackRate, src, or video sources are changed, calling load() re-initializes the video element to apply these changes. Syntax Following is the syntax for the Video load() method − videoObject.load() Parameters The load() method takes no parameters. Return Value The method does not return any value. It simply reloads the video element with the updated attributes. When to Use load() Method The load() ...

Read More

HTML DOM Video paused Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 164 Views

The HTML DOM Video paused property returns a boolean value indicating whether the video is currently paused or playing. This read-only property is true when the video is paused and false when it is playing. Syntax Following is the syntax to access the paused property − videoElement.paused Return Value The property returns a boolean value − true − The video is currently paused false − The video is currently playing Example − Basic Paused Property Check Following example demonstrates how to check if a video is paused using ...

Read More
Showing 551–560 of 1,509 articles
« Prev 1 54 55 56 57 58 151 Next »
Advertisements