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 Password required property
The HTML DOM Input Password required property is associated with the required attribute of an element with type="password". This property sets or returns whether a password field must be filled before form submission. When set to true, the browser prevents form submission if the password field is empty and displays a validation message. Syntax Following is the syntax for setting the required property − passwordObject.required = true|false Following is the syntax for getting the required property − var isRequired = passwordObject.required; Parameters The required property accepts the following ...
Read MoreWhy doesn't height: 100% work to expand divs to the screen height?
The height: 100% property in CSS doesn't work as expected for expanding divs to screen height because percentage heights depend on the parent element's height. If the parent doesn't have an explicit height, the percentage calculation fails, and the element won't expand to full screen height. Why height: 100% Fails When you set height: 100% on a div, the browser looks for the parent element's height to calculate the percentage. If the parent element (like or ) doesn't have a defined height, the percentage has no reference point and defaults to the content height instead of the ...
Read MoreCan I pass a value from one HTML page to another HTML page without passing it in URL?
Yes, you can pass values from one HTML page to another without exposing them in the URL. While HTML itself is a static markup language without native data transmission capabilities, JavaScript and server-side technologies provide several methods to share data between pages securely and efficiently. Available Methods The following techniques allow data transfer between HTML pages without URL parameters − Local Storage − Browser-based storage that persists data across sessions Session Storage − Temporary storage that lasts only for the current session Cookies − Small data files stored in the browser Form Submission with Hidden Fields ...
Read MoreHTML DOM Input Time form Property
The HTML DOM Input Time form property returns a reference to the form element that contains the input time field. This property is read-only and provides access to the parent form object, allowing you to retrieve form attributes like ID, name, or other form-related properties. Syntax Following is the syntax for accessing the form property − inputTimeObject.form Return Value The form property returns a reference to the HTMLFormElement object that contains the input time element. If the input time element is not inside a form, it returns null. Example − Getting Form ...
Read MoreCreate A Form Using HTML Tables?
Creating forms using HTML tables was a common practice before CSS became widely adopted. While modern web development favors CSS-based layouts, understanding table-based forms is still valuable for maintaining legacy code and certain specific use cases. Syntax Following is the basic syntax for creating a form using HTML tables − Label: ...
Read MoreCan you copy HTML code from a website?
Yes, you can copy HTML code from a website using various browser tools and online services. Modern web browsers provide built-in features like "Inspect Element" and "View Page Source" that allow you to examine and copy the HTML structure of any webpage. However, it's essential to respect copyright laws and intellectual property rights when using copied HTML code, especially for commercial purposes. Methods to Copy HTML Code There are several effective methods to copy HTML code from websites − Using Browser's Inspect Element − Right-click on any element and select "Inspect" to view and copy specific ...
Read MoreHTML DOM Input Time max Property
The HTML DOM Input Time max property sets or returns the value of the max attribute of a time input field. This property defines the maximum time value that a user can enter in the time input field. Syntax Following is the syntax for returning the max property value − inputTimeObject.max Following is the syntax for setting the max property value − inputTimeObject.max = "hh:mm:ss.ms" Property Values The max property accepts a string value representing time in the format hh:mm:ss.ms. Here are the components − ...
Read MoreHow to set date and time when the text was deleted using HTML?
When creating web content, it's common to update text by removing outdated or incorrect information. HTML provides semantic elements to mark these changes while preserving a record of when modifications occurred. The del element and time element are the primary methods for tracking text deletions with timestamps. Syntax Following is the syntax for marking deleted text with a timestamp − deleted content The datetime attribute follows the ISO 8601 format, which includes date, time, and optionally timezone information. Following is the syntax for using the time element to display deletion timestamps − ...
Read MoreDifference between cheerio and puppeteer
Cheerio and Puppeteer are two popular JavaScript libraries used for web scraping and automation, but they serve different purposes and use cases. Cheerio is a lightweight server-side library for parsing and manipulating HTML and XML documents, while Puppeteer is a powerful library for controlling headless Chrome or Chromium browsers and automating web browsing tasks. What is Cheerio? Cheerio is a fast and lightweight library for parsing and manipulating HTML and XML documents on the server side using Node.js. It provides a jQuery-like syntax for navigating and manipulating the DOM tree, making it familiar to developers who have worked ...
Read MoreHow to disable the input type text area?
In this article, we will learn how to disable the textarea element using different methods in HTML. The element is used to create multi-line text input fields in forms. Disabling a textarea can be useful in situations where you want to display information to the user but prevent them from editing or modifying that information. For example, displaying a message or instructions in a textarea, or preventing user input during form submission to maintain data consistency. Syntax The disabled attribute is used to disable form elements including textarea − Content Or with ...
Read More