Articles on Trending Technologies

Technical articles with clear explanations and examples

Execute a script when the element is being double-clicked in HTML?

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 608 Views

The dblclick event is triggered when a pointing device button (such as a mouse) is quickly clicked twice on the same element within a short time period. This event is commonly used to provide alternative actions or shortcuts in web applications, similar to double-clicking files in desktop environments. There are three main ways to implement double-click functionality in HTML − Using the ondblclick attribute directly in HTML elements Assigning the ondblclick property via JavaScript Using the addEventListener() method with the "dblclick" event Syntax Following are the different syntaxes for implementing double-click events − ...

Read More

HTML DOM Input Month Object

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 275 Views

The HTML DOM Input Month Object represents an element with type="month". This input type allows users to select a month and year combination, displaying a month picker interface in supported browsers. The Input Month Object provides properties and methods to programmatically create, access, and manipulate month input fields through JavaScript. Syntax Following is the syntax to create an input month object using JavaScript − var monthInput = document.createElement("INPUT"); monthInput.setAttribute("type", "month"); You can also access an existing month input element − var monthInput = document.getElementById("monthId"); Properties Following are ...

Read More

How to specify that an element is not yet relevant in HTML?

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 357 Views

The hidden attribute in HTML is a boolean attribute used to specify that an element is not yet relevant or no longer applicable to the current state of the page. When present, browsers should not display the element to users. The hidden attribute serves multiple purposes − hiding content that becomes relevant only after certain conditions are met, removing outdated information from view, or concealing elements until user interactions make them applicable. It provides a semantic way to control element visibility without relying solely on CSS. Syntax Following is the syntax for the hidden attribute − ...

Read More

HTML DOM Input Month defaultValue Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 218 Views

The HTML DOM Input Month defaultValue Property is used to set or return the default value of an input field with type="month". This property represents the initial value that was specified in the HTML value attribute when the page loaded. Syntax Following is the syntax for returning the default value − object.defaultValue Following is the syntax for setting the default value − object.defaultValue = value Here, value is a string representing a month in YYYY-MM format, for example "2019-03" for March 2019. Parameters This property accepts the following ...

Read More

How to specify a unique id for an element in HTML?

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

The id attribute in HTML specifies a unique identifier for an element. The id value must be unique across the entire HTML document. The id attribute is used to reference elements in CSS stylesheets for styling and in JavaScript for element manipulation and access. Syntax Following is the syntax for using the id attribute − Content Where uniqueValue is a string that uniquely identifies the element within the document. To reference it in CSS, use #uniqueValue, and in JavaScript, use document.getElementById("uniqueValue"). ID Attribute Rules The id attribute follows these important rules − ...

Read More

How to create a website without using HTML?

Fendadis John
Fendadis John
Updated on 16-Mar-2026 4K+ Views

If you have no knowledge of HTML or CSS and want to create a website, do not worry. You can easily create a professional-looking website without writing even a single line of HTML code using modern website building tools. Here are the most effective ways to build a website without writing any HTML or code − Website Builders Website builders are drag-and-drop platforms that allow you to create websites using visual interfaces. Most web hosting companies provide free website builder tools when you purchase a hosting plan. Popular Website Builders Wix − Offers hundreds ...

Read More

Why to use canvas tag in HTML5?

Nishtha Thakur
Nishtha Thakur
Updated on 16-Mar-2026 410 Views

The HTML tag is a powerful HTML5 element used to draw graphics, animations, charts, and interactive visual content directly in the browser using JavaScript. Unlike static images, the canvas provides a dynamic drawing surface that can be programmatically controlled to create rich visual experiences. Syntax Following is the basic syntax for the canvas element − Fallback content for browsers that don't support canvas Canvas Attributes The canvas element has two specific attributes that control its dimensions − Attribute Value Description ...

Read More

How to set the range that is considered to be of high value in HTML?

Ankith Reddy
Ankith Reddy
Updated on 16-Mar-2026 217 Views

Use the high attribute in HTML to set the range that is considered to be of high value. The high attribute is used with the element to define a threshold above which the measured value is considered high or above normal. The high attribute works in conjunction with other attributes like low, min, max, and optimum to create visual indicators for different value ranges. When a meter's value exceeds the high threshold, browsers typically display it in a different color to indicate the high state. Syntax Following is the syntax for the high attribute − ...

Read More

HTML DOM Abbreviation Object

Ankith Reddy
Ankith Reddy
Updated on 16-Mar-2026 451 Views

The HTML DOM Abbreviation Object represents the element in the Document Object Model. The element is used to display abbreviations or acronyms, often with a title attribute that provides the full expanded text. The Abbreviation object provides access to all the properties and methods of the element, allowing you to manipulate abbreviations dynamically using JavaScript. Syntax To access an abbreviation object using JavaScript − document.getElementById("abbreviationId") To create a new abbreviation object − document.createElement("abbr") Properties The Abbreviation object inherits all properties from the HTMLElement interface. The ...

Read More

HTML DOM Input Month disabled Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 228 Views

The HTML DOM Input Month disabled property allows you to check or modify whether an input field with type="month" is disabled or enabled. When disabled, the input field cannot receive focus, cannot be edited, and its value is not submitted with the form. Syntax Following is the syntax for returning the disabled status − object.disabled Following is the syntax for setting the disabled status − object.disabled = true | false Property Values The disabled property accepts the following boolean values − true − The input month field ...

Read More
Showing 13571–13580 of 61,299 articles
Advertisements