Articles on Trending Technologies

Technical articles with clear explanations and examples

How to set the input type date in dd-mm-yyyy format using HTML?

Arunachalam K
Arunachalam K
Updated on 16-Mar-2026 4K+ Views

To set the input type date in dd-mm-yyyy format using HTML, you need to use alternative approaches since the native element displays dates in YYYY-MM-DD format by default. This article explores various techniques to customize date formats for better user experience and data consistency. Creating intuitive web forms is crucial for enhancing user experience, particularly with date inputs. Although HTML5 introduced the feature for easy date selection, it generally formats dates as YYYY-MM-DD. This can be inconvenient for users in regions that prefer the DD-MM-YYYY format. This article will guide you on various methods to implement date ...

Read More

HTML DOM Table deleteCaption() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 125 Views

The HTML DOM table deleteCaption() method removes the first element from a table in an HTML document. This method is useful when you need to dynamically remove table captions after the page has loaded. Syntax Following is the syntax for the deleteCaption() method − tableObject.deleteCaption() Parameters This method does not accept any parameters. Return Value The method returns undefined. It simply removes the caption element if it exists, or does nothing if no caption is present. How It Works The deleteCaption() method searches for the first element ...

Read More

HTML DOM Table deleteTFoot() Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 122 Views

The HTML DOM table deleteTFoot() method removes the element from a table in an HTML document. This method provides a quick way to dynamically remove table footers without manually selecting and deleting the footer element. Syntax Following is the syntax for the deleteTFoot() method − table.deleteTFoot() Parameters This method does not accept any parameters. Return Value This method returns undefined. If no element exists in the table, the method does nothing and no error is thrown. Example − Basic Usage Following example demonstrates how to use the ...

Read More

Content Spoofing

Sunidhi Bansal
Sunidhi Bansal
Updated on 16-Mar-2026 623 Views

Content Spoofing is a type of attack where malicious programmers present a fake website as legitimate to users through text injection or HTML injection. When web applications fail to properly validate user-supplied data, attackers can inject additional parameters that modify the displayed content, leading users to pages that appear authentic but are designed to steal sensitive information. Content spoofing attacks exploit insufficient input validation and output encoding in web applications. The attacker manipulates URL parameters or form data to alter the content displayed to users, creating convincing replicas of legitimate pages to harvest credentials, personal information, or financial data. ...

Read More

Difference between and tags in HTML

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 1K+ Views

Both the and tags are used for creating lists from which users can choose options. The key distinction is that the tag allows users to enter custom input along with predefined suggestions, while the tag restricts users to only the predefined options. The provides an autocomplete feature with suggestions, making it ideal for flexible input scenarios. The creates a traditional dropdown menu for strict option selection. HTML Tag The tag specifies predefined options for an element and provides autocomplete functionality. Users see suggestions based on what they type, ...

Read More

HTML5 Input Types You May Not Be Using

Deepak Subhash
Deepak Subhash
Updated on 16-Mar-2026 217 Views

HTML5 introduced several specialized input types that enhance user experience and reduce the need for custom JavaScript validation. Many developers overlook these powerful input types that can significantly improve form usability, especially on mobile devices. Syntax Following is the basic syntax for HTML5 input types − Where inputType is one of the HTML5 input types like tel, date, email, etc., and additional attributes provide specific constraints and behaviors. HTML5 Input Types Overview Following table lists the specialized HTML5 input types and their primary purposes − Input Type ...

Read More

HTML DOM Video networkState Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 182 Views

The HTML DOM Video networkState property returns a numeric value that represents the current network state of a video element. This read-only property helps developers understand whether the video is loading, idle, or encountering network issues. Syntax Following is the syntax to get the networkState property − videoElement.networkState Return Value The networkState property returns one of the following numeric values − 0 (NETWORK_EMPTY) − The video element has not yet been initialized. No network activity has started. 1 (NETWORK_IDLE) − The video element is active and has selected a resource, but ...

Read More

How to decide the order of precedence of the style attributes in HTML?

Diksha Patro
Diksha Patro
Updated on 16-Mar-2026 320 Views

In HTML and CSS, the order of precedence (also called specificity) determines which style rules are applied when multiple styles target the same element. Understanding this hierarchy is crucial for effective web development and debugging style conflicts. CSS follows a specific cascade order where styles with higher precedence override those with lower precedence. This system ensures predictable styling behavior when multiple style sources exist. CSS Precedence Order The CSS cascade follows this order of precedence, from highest to lowest priority − Inline styles − Styles applied directly to an element using the style attribute Internal ...

Read More

HTML DOM Video Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 355 Views

The HTML DOM Video Object represents the element in the Document Object Model. It provides a JavaScript interface to control video playback, access video properties, and manage video-related events programmatically. Creating a Video Object You can access an existing video element or create a new one using JavaScript − // Access existing video element var videoObject = document.getElementById("myVideo"); // Create new video element var videoObject = document.createElement("VIDEO"); Video Object Properties The Video Object provides numerous properties to control and monitor video playback. Here are the key properties − ...

Read More

How to declare a custom attribute in HTML?

Diksha Patro
Diksha Patro
Updated on 16-Mar-2026 6K+ Views

In this article, we will discuss how to declare a custom attribute in HTML. Custom attributes are useful when you want to store additional information that is not part of standard HTML attributes. They provide flexibility and customization in HTML, making your code more maintainable and functional. Approaches We have two different approaches to declaring a custom attribute in HTML − Using the data- prefix − Standard HTML5 approach for custom attributes Using custom attributes − Non-standard approach with custom naming Syntax Following is the syntax for data- attributes − Content ...

Read More
Showing 13251–13260 of 61,297 articles
Advertisements