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 Form autocomplete Property
The HTML DOM Form autocomplete property is associated with the autocomplete attribute of the form element. This property allows you to set or return the autocomplete attribute value of a form, controlling whether the browser should automatically complete form fields based on previously entered values. When autocomplete is enabled ("on"), the browser suggests values based on user's previous input. When disabled ("off"), users must manually enter all values without browser assistance. The autocomplete property can be overridden for specific input fields within the form. Syntax Following is the syntax for setting the autocomplete property − ...
Read MoreHTML DOM Input Radio object
The HTML DOM Input Radio object represents an element with type="radio". Radio buttons allow users to select one option from a group of related choices. The Input Radio object provides properties and methods to dynamically create, access, and manipulate radio button elements using JavaScript. Syntax Following is the syntax for creating an input radio object − var radioElement = document.createElement("INPUT"); radioElement.setAttribute("type", "radio"); Following is the syntax for accessing an existing input radio object − var radioElement = document.getElementById("radioId"); Properties Following are the key properties of the Input Radio ...
Read MoreHTML DOM console.trace() Method
The HTML DOM console.trace() method displays the stack trace up to the point where the method is called. It shows the execution path, revealing how the code reached that particular point. This method is primarily used for debugging to understand the function call hierarchy. Syntax Following is the syntax for the console.trace() method − console.trace(label); Parameters The method accepts one optional parameter − label − An optional string parameter that provides a custom label for the stack trace output. This is helpful when you have multiple trace calls in different ...
Read MoreHTML DOM Input Radio required property
The HTML DOM Input Radio required property is associated with the required attribute of an element. The required property is used for setting and returning whether it is necessary to check a radio button before the form is submitted to the server. This allows the form to not submit if a radio button with the required attribute is left unchecked by the user. Syntax Following is the syntax for setting the required property − radioObject.required = true|false Following is the syntax for getting the required property − var isRequired = radioObject.required; ...
Read MoreHTML DOM Video poster Property
The HTML DOM Video poster property returns or sets the URL of an image that is displayed as a placeholder before the video starts playing or while the video is loading. This property corresponds to the poster attribute of the HTML element. Syntax Following is the syntax for getting the poster URL − mediaObject.poster Following is the syntax for setting the poster URL − mediaObject.poster = URLString Where mediaObject is a reference to the video element and URLString is the path or URL to the image file. Parameters ...
Read MoreHTML DOM Input URL pattern Property
The HTML DOM Input URL pattern property sets or returns the regular expression that validates URL input fields. The pattern attribute's value is checked against the text typed in the URL field to ensure it matches the specified format. Syntax Following is the syntax for returning the pattern value − inputURLObject.pattern Following is the syntax for setting the pattern value − inputURLObject.pattern = "RegExp" Parameters The pattern property accepts a single parameter − RegExp − A string containing a regular expression that the URL input value must ...
Read MoreHTML DOM Video preload Property
The HTML DOM Video preload property controls when video data should be loaded. This property accepts string values that indicate the preferred loading behavior, helping optimize page performance and bandwidth usage. The default value is metadata. Syntax Following is the syntax to get the current preload setting − mediaObject.preload Following is the syntax to set the preload property − mediaObject.preload = "auto|metadata|none" Property Values The preload property accepts the following string values − Value Description auto The browser should load the ...
Read MoreFixed Width Design
Most users at the beginning of the internet's existence were desktop computer users. Nowadays, you can access the internet on your laptop, phone, tablet, automobile, etc. People anticipate that the website will appear nice across all platforms. Before responsive web design, web developers and designers tried with a variety of various methods. One of them was fixed-width design. As the name suggests "The width of your content is fixed" implies, the material's width will always be the same regardless of the size of your screen. Let's dive into the article to learn more about the fixed width design. ...
Read MoreHTML DOM Video readyState Property
The HTML DOM Video readyState property returns a numeric value that represents the current loading state of a video element. This property is essential for determining whether the video has enough data to begin playback or if it's still loading. Syntax Following is the syntax to get the ready state of a video element − videoElement.readyState Return Value The readyState property returns an integer value from 0 to 4, each representing a different loading state − 0 (HAVE_NOTHING) − No information is available about the media resource 1 (HAVE_METADATA) − Metadata ...
Read MoreHow do min-content and max-content work?
In CSS, min-content and max-content are intrinsic sizing keywords that determine an element's size based on its content rather than explicit dimensions. The min-content value makes an element as narrow as possible without overflowing its content, while max-content makes it as wide as needed to display all content on a single line without wrapping. These keywords are particularly useful for responsive design, where you want elements to size themselves naturally based on their content rather than fixed dimensions. CSS min-content The min-content keyword represents the smallest size an element can be without causing content overflow. For text ...
Read More