Front End Technology Articles

Page 61 of 652

HTML DOM Video src Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 171 Views

The HTML DOM Video src property returns or sets the URL of the video file for a video element. This property corresponds to the src attribute of the HTML element and allows you to dynamically change or retrieve the video source using JavaScript. Syntax Following is the syntax for getting the video source − videoObject.src Following is the syntax for setting the video source − videoObject.src = "URL" Parameters URL − A string representing the absolute or relative URL of the video file to be loaded. ...

Read More

HTML DOM Video textTracks Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 102 Views

The HTML DOM Video textTracks property returns a TextTrackList object containing information about all text tracks associated with a video element. Text tracks include subtitles, captions, descriptions, chapters, and metadata that can be displayed alongside video content. Syntax Following is the syntax to access the textTracks property − videoElement.textTracks Return Value The property returns a TextTrackList object that contains − length − The number of text tracks available Individual tracks − Each track can be accessed by index with properties like label, language, kind, and mode Methods − getTrackById() to find ...

Read More

HTML DOM Video volume Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 162 Views

The HTML DOM Video volume property sets or retrieves the audio volume level of a video element. The volume is represented as a decimal number between 0.0 (muted) and 1.0 (maximum volume). Syntax Following is the syntax for returning the current volume − mediaObject.volume Following is the syntax for setting the volume to a specific level − mediaObject.volume = number Parameters The number parameter accepts a decimal value with the following constraints − Maximum value − 1.0 (full volume) Minimum value − 0.0 (muted/silent) Default value − ...

Read More

HTML DOM Video width Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 178 Views

The HTML DOM Video width property allows you to get or set the width of a video element in pixels. This property corresponds to the width attribute of the element and can be manipulated dynamically using JavaScript. Syntax Following is the syntax for getting the width value − mediaObject.width Following is the syntax for setting the width value − mediaObject.width = number Parameters number − A positive integer representing the width of the video element in pixels. Return Value The property returns a number ...

Read More

HTML DOM Window stop() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 320 Views

The HTML DOM Window stop() method provides functionality to stop loading the resources of a window programmatically. This method is equivalent to clicking the browser's stop button and halts the loading of all resources including images, stylesheets, and scripts for the current window. Syntax Following is the syntax for the Window stop() method − window.stop() The method takes no parameters and returns no value. It simply stops the loading process of the current window. How It Works When window.stop() is called, it immediately halts all ongoing resource loading for that specific window. ...

Read More

Which of the following is not a valid HTML tag: h1, H, h2, h3?

Ayush Singh
Ayush Singh
Updated on 16-Mar-2026 603 Views

HTML uses specific tags to structure and organize content on web pages. Understanding which tags are valid and which are not is crucial for proper HTML development. The question asks about the validity of four potential heading tags: h1, H, h2, and h3. HTML Tag Syntax HTML tags follow a specific syntax structure enclosed in angle brackets − Content Valid HTML tags must have defined names in the HTML specification. Tag names are case-insensitive, meaning and are equivalent. HTML Heading Tags HTML provides six levels of heading tags to create ...

Read More

How to display Base64 images in HTML?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 26K+ Views

To display images encoded with Base64, you need to get the base64 encoded string and use the img element. This prevents the page from loading slowly and saves the web browser from additional HTTP requests. Base64 images are embedded directly into HTML using Data URLs, which eliminate the need for separate image files. This technique is useful for small images, icons, or when you want to reduce HTTP requests. Syntax Following is the syntax for displaying a Base64 image in HTML − Where − [format] is the image format (jpeg, png, ...

Read More

HTML DOM Input Range disabled property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 2K+ Views

The HTML DOM Input Range disabled property sets or returns whether a range slider should be disabled. When set to true, the range slider becomes greyed out and unresponsive to user interaction. The property accepts boolean values and defaults to false. Syntax Following is the syntax for setting the disabled property − rangeObject.disabled = true|false; Following is the syntax for getting the disabled property − var isDisabled = rangeObject.disabled; Parameters The disabled property accepts the following boolean values − true − The range slider is disabled and ...

Read More

How to create headings in HTML page?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 5K+ Views

Headings are the titles or subtitles of content that you want to display on a web page. They help users understand the structure and hierarchy of information, making content easier to scan and navigate. HTML provides six different levels of heading tags, from to , where represents the most important heading and the least important. Heading tags should be used in logical order to create proper document structure. Use for main headings, followed by for major sections, then for subsections, and so on. This hierarchy is important for both search engine optimization and ...

Read More

How to use image height and width attribute in HTML Page?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 2K+ Views

Images make web content more engaging and help users better understand the information presented. In HTML, we can control the display size of images using the width and height attributes of the tag. The tag is a self-closing element that requires the src attribute to specify the image location. The width and height attributes allow us to define the display dimensions of the image without modifying the original file. Syntax Following is the syntax for using width and height attributes with the image tag − The width and height values ...

Read More
Showing 601–610 of 6,519 articles
« Prev 1 59 60 61 62 63 652 Next »
Advertisements