Articles on Trending Technologies

Technical articles with clear explanations and examples

HTML max Attribute

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

The max attribute in HTML defines the maximum value for various form input elements and the progress element. It specifies the upper limit or boundary for user input and progress indicators, ensuring data validation and proper visual representation. Syntax Following is the syntax for the max attribute − Where value represents the maximum allowed value. The data type depends on the element type (number, date, or floating-point). Elements Supporting Max Attribute The max attribute can be used with the following HTML elements − − Sets the maximum numeric ...

Read More

HTML DOM Input Color Object

Rama Giri
Rama Giri
Updated on 16-Mar-2026 215 Views

The HTML DOM Input Color Object represents an HTML input element with type="color". This object provides methods and properties to interact with color picker elements through JavaScript, allowing developers to create, access, and manipulate color input fields programmatically. Syntax Following is the syntax for creating an input color object − var colorObject = document.createElement("input"); colorObject.type = "color"; Following is the syntax for accessing an existing color input − var colorObject = document.getElementById("colorId"); Properties The Input Color Object supports several properties that allow you to control its behavior and appearance ...

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

Execute a script when a file can be played all the way to the end without pausing for buffering in HTML?

Prabhas
Prabhas
Updated on 16-Mar-2026 126 Views

The oncanplaythrough attribute in HTML5 executes a JavaScript function when a media file (audio or video) can be played all the way through without pausing for buffering. This event fires when the browser estimates that enough data has been loaded to play the media from start to finish at the current playback rate. Syntax Following is the syntax for the oncanplaythrough attribute − The functionName() is a JavaScript function that gets executed when the media can play through without buffering interruptions. How It Works The oncanplaythrough event is part of ...

Read More

HTML cite Attribute

Arjun Thakur
Arjun Thakur
Updated on 16-Mar-2026 217 Views

The cite attribute in HTML is used to specify the URL or source of a quoted text, citation, or reference. It provides metadata about the source of the content, making it valuable for accessibility tools like screen readers and search engines, even though the URL itself is not visually displayed on the webpage. Syntax Following is the syntax for the cite attribute − quoted text quoted content deleted text inserted text Where URL is the web address or document reference that serves as the source of the quoted, deleted, or inserted content. Elements ...

Read More

How to add the value of the element in HTML?

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

The value attribute in HTML specifies the initial or default value for various form elements. It serves different purposes depending on the element type − from setting default text in input fields to defining the data sent when buttons are clicked. Understanding how to properly use the value attribute is essential for creating functional HTML forms. Syntax Following is the basic syntax for using the value attribute − The value attribute can be used with the following HTML elements − − Sets default value for form inputs − Defines ...

Read More

HTML DOM Input Color type Property

Kumar Varma
Kumar Varma
Updated on 16-Mar-2026 211 Views

The HTML DOM Input Color type property returns or sets the value of the type attribute of a color input element. This property allows you to get the current input type or dynamically change it to a different input type such as text, radio, or other valid input types. Syntax Following is the syntax for returning the type value − inputColorObject.type Following is the syntax for setting the type value − inputColorObject.type = stringValue Return Value The property returns a string representing the current type of the input element ...

Read More

Add a label for a form control in HTML?

Bhanu Priya
Bhanu Priya
Updated on 16-Mar-2026 648 Views

In HTML, the tag is used to define labels for form controls, creating a clickable association between the label text and the form element. When a user clicks on a properly associated label, the browser automatically focuses or activates the corresponding form control. The tag can be associated with the following form elements − (all types) Syntax Following is the basic syntax of the tag − Label text The tag supports two key attributes − for − Specifies ...

Read More

Set the text wrap in a form in HTML

Nikitha N
Nikitha N
Updated on 16-Mar-2026 861 Views

The wrap attribute in HTML controls how text wrapping behaves in a element. This attribute determines whether line breaks are inserted when the text reaches the edge of the textarea and how those line breaks are handled when the form is submitted to the server. Syntax Following is the syntax for the wrap attribute − Text content The value can be soft, hard, or off. Wrap Attribute Values The wrap attribute accepts three possible values − soft − Text wraps visually in the textarea, but line breaks are not ...

Read More

HTML DOM Input Color value Property

Rama Giri
Rama Giri
Updated on 16-Mar-2026 167 Views

The HTML DOM Input Color value property returns or sets the value of an HTML color input field as a hexadecimal color string. This property allows you to programmatically get the currently selected color or change the color picker to display a different color value. Syntax Following is the syntax for returning the color value − inputColorObject.value Following is the syntax for setting the color value − inputColorObject.value = "hexColorString" Return Value The value property returns a string representing the color in hexadecimal format (e.g., #ff0000 for red). If ...

Read More
Showing 13711–13720 of 61,297 articles
Advertisements