Articles on Trending Technologies

Technical articles with clear explanations and examples

HTML DOM Input Time autofocus Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 160 Views

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 More

HTML DOM cite object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 174 Views

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 More

HTML DOM Track src Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 179 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 width/height Attribute vs CSS width/height Property

Mohit Panchasara
Mohit Panchasara
Updated on 16-Mar-2026 624 Views

While developing web pages, many times, developers require to manage the size of different HTML elements such as image, div element, span element, etc. Developers can use the width and height CSS properties or HTML attributes to manipulate the dimensions of a particular element. In this tutorial, we will see the difference between the width/height HTML attribute and CSS properties. Width and Height HTML Attributes The width/height attributes in HTML are used for the presentation. It takes the width and height values in the 'px', '%', etc. units but not in 'rem' units. Also, if we don't ...

Read More

HTML DOM Input Time defaultValue Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 423 Views

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

jQuery.click() vs onClick

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

In this article, we will learn the difference between jQuery.click() and onClick. The click() method is a jQuery event handler that attaches event listeners dynamically, while onClick is an HTML attribute that defines inline event handling directly in the markup. jQuery click() Method The click() method in jQuery is used to attach a click event handler to selected elements or trigger the click event programmatically. It follows the standard event registration model and allows multiple event handlers to be attached to the same element. Syntax Following is the syntax for the jQuery click() method − ...

Read More

Can HTML be replaced completely with any other language?

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

HTML cannot be completely replaced by any other language in web development. While there are alternative technologies like JavaScript, CSS, and frameworks like React or Angular that enhance the functionality and design of web pages, HTML remains the fundamental markup language. HTML provides the essential structure, semantics, and accessibility required for building web pages. It defines the content's hierarchy and serves as the backbone for organizing information. Other languages complement HTML by adding interactivity, styling, and dynamic functionality. However, removing HTML would result in a loss of structure and standardized format, making it impossible to create cohesive and accessible web ...

Read More

How to prevent form from being submitted?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 344 Views

Preventing form submission is essential for client-side validation, custom handling, or multi-step forms. JavaScript provides several methods to prevent the default form submission behavior, allowing developers to validate data, show confirmation dialogs, or handle form data without page reloads. Syntax Following are the common syntaxes to prevent form submission − // Using event.preventDefault() event.preventDefault(); // Using return false return false; // Using addEventListener with preventDefault form.addEventListener('submit', function(e) { e.preventDefault(); }); Method 1 − Using event.preventDefault() The event.preventDefault() method cancels the default action that belongs to the event. When ...

Read More

How to create bullets using li elements?

Jaisshree
Jaisshree
Updated on 16-Mar-2026 329 Views

The element is used to define list items within an ordered list () or an unordered list (). The element stands for "list item". Bullets are most commonly used with unordered lists to create visual markers for each item, making content easier to read and organize. Syntax Following is the basic syntax for creating bulleted lists using elements − First item Second item Third item The CSS list-style-type property controls the bullet appearance − ul { ...

Read More

HTML DOM Input Time disabled Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 181 Views

The HTML DOM Input Time disabled property sets or returns whether a time input field is enabled or disabled. When an input time element is disabled, it becomes non-editable and appears grayed out, preventing user interaction. Syntax Following is the syntax for returning the disabled property − inputTimeObject.disabled Following is the syntax for setting the disabled property − inputTimeObject.disabled = booleanValue Parameters Here, booleanValue can be one of the following − Value Description true Disables the input time element (non-editable, grayed ...

Read More
Showing 13051–13060 of 61,297 articles
Advertisements