Articles on Trending Technologies

Technical articles with clear explanations and examples

HTML DOM Input DatetimeLocal disabled Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 154 Views

The HTML DOM Input DatetimeLocal disabled property sets or returns whether an Input DatetimeLocal field is enabled or disabled. When set to true, the field becomes uneditable and grayed out, preventing user interaction. When set to false, the field becomes interactive and allows users to select date and time values. Syntax Following is the syntax for returning the disabled property − inputDatetimeLocalObject.disabled Following is the syntax for setting the disabled property − inputDatetimeLocalObject.disabled = booleanValue Parameters The disabled property accepts the following boolean values − ...

Read More

HTML DOM paddingLeft Property

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

The HTML DOM paddingLeft property is used to get or set the left padding of an HTML element. This property allows you to dynamically modify the spacing inside an element from the left side using JavaScript. Syntax Following is the syntax for getting the paddingLeft property − object.style.paddingLeft Following is the syntax for setting the paddingLeft property − object.style.paddingLeft = "value" Return Value The paddingLeft property returns a string representing the left padding value of the element, including the unit (e.g., "20px", "2em", "5%"). Property Values The ...

Read More

How to limit the number of characters entered in a textarea in an HTML form?

Geetu Magoo
Geetu Magoo
Updated on 16-Mar-2026 15K+ Views

In HTML, we can create forms to accept and store information entered by the user with the help of various elements. The textarea is one such element that allows users to enter multiline text data, unlike regular text fields which are single-line input controls. The textarea control is commonly used for entering remarks, suggestions, address information, email body content, comments, or any text that requires multiple lines. By default, a textarea can accept up to 524, 288 characters, but we can limit this using the maxlength attribute. Syntax Following is the basic syntax for creating a textarea ...

Read More

How to display an image in HTML?

Nitya Raut
Nitya Raut
Updated on 16-Mar-2026 9K+ Views

Use the tag in HTML to display an image. The tag is a self-closing element that embeds images into web pages. It requires the src attribute to specify the image location and the alt attribute for accessibility. Syntax Following is the basic syntax for the tag − The tag is self-closing, meaning it doesn't require a closing tag. The src and alt attributes are essential for proper functionality and accessibility. IMG Tag Attributes The tag supports several attributes to control image display and behavior − ...

Read More

How to use input type field with steps in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 983 Views

The step attribute in HTML input fields defines the interval between valid numbers that users can enter or select. When used with input types like number, range, date, or time, it controls the stepping behavior of spinner buttons and slider movements. For example, if step="2", the valid numbers could be -4, -2, 0, 2, 4, etc. The step attribute sets the stepping interval when clicking up and down spinner buttons in number fields or moving a slider left and right on range inputs. Syntax Following is the syntax to use the step attribute in HTML input fields ...

Read More

HTML DOM Input DatetimeLocal form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 180 Views

The HTML DOM Input DatetimeLocal form property returns a reference to the element that contains the input DatetimeLocal element. This property is read-only and provides access to the parent form object for further manipulation or validation. Syntax Following is the syntax to access the form property − inputDatetimeLocalObject.form Return Value The property returns a reference to the HTMLFormElement object that contains the datetime-local input. If the input is not within a form element, it returns null. Example Let us see an example of Input DatetimeLocal form property − ...

Read More

Bootstrap Helper Classes

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

Bootstrap helper classes are utility classes that provide quick styling solutions for common layout and formatting needs. These classes include .pull-left, .pull-right, .center-block, .clearfix, and others that help developers apply styles without writing custom CSS. Common Bootstrap Helper Classes Following are the most commonly used Bootstrap helper classes − .pull-left − Floats an element to the left .pull-right − Floats an element to the right .center-block − Centers a block-level element horizontally .clearfix − Clears floated elements within a container .text-left, .text-center, .text-right − Text alignment utilities .show, .hidden − Show or hide elements ...

Read More

HTML DOM Input DatetimeLocal max Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 205 Views

The HTML DOM Input DatetimeLocal max property returns or sets the maximum allowed date and time value for a datetime-local input field. This property corresponds to the max attribute in HTML and helps restrict user input to a specific upper limit. Syntax Following is the syntax for returning the max value − inputDatetimeLocalObject.max Following is the syntax for setting the max value − inputDatetimeLocalObject.max = "YYYY-MM-DDThh:mm:ss" Return Value The max property returns a string representing the maximum date and time value in the format YYYY-MM-DDThh:mm:ss. If no max attribute ...

Read More

How to create a collapsed border in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 16K+ Views

The border-collapse property is a CSS property used to control how table borders are displayed. When set to collapse, it merges adjacent table cell borders into a single border, creating a cleaner appearance. When set to separate, each cell maintains its own individual border. Syntax Following is the syntax for the border-collapse property − border-collapse: value; The border-collapse property accepts the following values − collapse − Borders are collapsed into a single border separate − Borders are kept separate (default behavior) initial − Sets the property to its default value (separate) inherit ...

Read More

How to use input type field with the color picker in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 2K+ Views

The color input type in HTML provides a user-friendly way to select colors through a built-in color picker interface. The element displays a clickable color swatch that opens a color picker dialog when activated. When a user clicks on the color input field, the browser displays a native color picker interface. The selected color value is stored as a seven-character hexadecimal string (e.g., #ff0000 for red). You can set a default color using the value attribute with a valid hexadecimal color code. Syntax Following is the syntax to use input type field with color picker in ...

Read More
Showing 13971–13980 of 61,297 articles
Advertisements