Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
HTML DOM Input DatetimeLocal disabled Property
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 MoreHTML DOM paddingLeft Property
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 MoreHow to limit the number of characters entered in a textarea in an HTML form?
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 MoreHow to display an image in HTML?
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 MoreHow to use input type field with steps in HTML?
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 MoreHTML DOM Input DatetimeLocal form Property
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 MoreBootstrap Helper Classes
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 MoreHTML DOM Input DatetimeLocal max Property
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 MoreHow to create a collapsed border in HTML?
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 MoreHow to use input type field with the color picker in HTML?
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