Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by AmitDiwan
Page 243 of 840
HTML DOM Track kind Property
The HTML DOM Track kind property sets or returns the value of the kind attribute of a track element. This property specifies the type of text track associated with media elements like video and audio, helping browsers understand how to handle and display track content. Syntax Following is the syntax for getting the kind property − trackObject.kind Following is the syntax for setting the kind property − trackObject.kind = stringValue Parameters The stringValue parameter can be one of the following track types − Value Description ...
Read MoreHow can you set the height of an outer div to always be equal to a particular inner div?
When working with multiple inner div elements inside an outer container, you may need the outer container's height to match the height of a specific inner div. This ensures consistent layout and proper alignment across all inner elements. This article demonstrates two effective approaches using modern CSS techniques. Syntax Following is the basic HTML structure for setting outer div height based on inner div − Content that controls height Content that adapts to height More content that adapts Using CSS Flexbox CSS ...
Read MoreHTML DOM Track label Property
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 MoreRecommended way to embed PDF in HTML?
To embed a PDF in HTML, there are several methods available, each with its own advantages and use cases. The most commonly used approaches are the , , and elements. Let us explore each method with their syntax and implementation details. Methods to Embed PDF The three primary methods for embedding PDFs in HTML are − iframe element − Most widely supported and provides fallback content options. embed element − Simple self-closing tag with direct plugin integration. object element − W3C recommended standard with robust fallback support. Using the iframe Element The ...
Read MoreHTML DOM Input Text type Property
The HTML DOM Input Text type property is used to get or set the type attribute of an input text element. This property allows you to dynamically change the input type using JavaScript, which can be useful for creating adaptive forms or validating user input. Syntax Following is the syntax for returning the type value − inputTextObject.type Following is the syntax for setting the type value − inputTextObject.type = stringValue Parameters The stringValue parameter can be any valid HTML input type. Here are the common string values − ...
Read MoreDisable browser caching with meta HTML tags
To disable browser caching with meta HTML tags, you can use specific meta elements that instruct the browser and intermediate caches not to store copies of your web page. This ensures that users always receive the most current version of your content. Syntax Following are the three essential meta tags used to disable browser caching − Understanding Cache Control Meta Tags The tag is an empty HTML element that provides metadata about the document. When used with the http-equiv attribute, it can simulate HTTP response headers that control browser ...
Read MoreHTML DOM Input Time autofocus Property
The HTML DOM Input Time autofocus property sets or returns whether a time input field should automatically get focus when the page loads. When set to true, the time input will be focused immediately upon page load, allowing users to start typing without clicking on the field first. Syntax Following is the syntax for getting the autofocus property value − inputTimeObject.autofocus Following is the syntax for setting the autofocus property − inputTimeObject.autofocus = booleanValue Return Value The autofocus property returns a boolean value indicating whether the time input has ...
Read MoreHTML DOM cite object
The HTML DOM cite object is associated with the HTML element. The element is used to reference creative works like books, movies, paintings, songs, or research papers. When rendered, browsers typically display cite content in italics to distinguish it from regular text. Syntax Following is the syntax for creating a cite object using JavaScript − var citeElement = document.createElement("CITE"); Following is the syntax for the HTML element − Title of creative work Properties and Methods The cite object inherits all standard HTML DOM element properties and ...
Read MoreHTML DOM Track src Property
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 MoreHTML DOM Input Time defaultValue Property
The HTML DOM Input Time defaultValue property sets or returns the default value of a time input field. This property represents the initial value specified in the HTML value attribute, which remains constant even when the user changes the input value. The key difference between value and defaultValue is that value changes as the user interacts with the input, while defaultValue always holds the original default value from the HTML markup. Syntax Following is the syntax for getting the default value − inputTimeObject.defaultValue Following is the syntax for setting the default value − ...
Read More