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 Email form Property
The HTML DOM Input Email form property is a read-only property that returns a reference to the form element that contains the input email field. This property provides access to the parent form element, allowing you to retrieve form attributes and manipulate form behavior through JavaScript. Syntax Following is the syntax for accessing the form property − inputEmailObject.form This property returns a reference to the HTMLFormElement object that contains the email input field. If the input field is not inside a form, it returns null. Return Value The form property returns − ...
Read MoreHow to use an HTML tag inside HTML table?
HTML allows you to place any valid HTML tag inside table cells, making tables highly flexible for displaying structured content. The HTML tags should be placed inside (table data) or (table header) elements to create rich, formatted content within your tables. Syntax Following is the syntax to use HTML tags inside table cells − Content You can include paragraphs, lists, images, links, forms, or any other HTML element inside table cells. The nested tags follow the same rules as regular HTML elements. Using Paragraph Tags in ...
Read MoreExecute a script when a reset button in a form is clicked in HTML?
The onreset attribute in HTML is an event handler that executes a JavaScript function when a form's reset button is clicked. This attribute is applied to the element and triggers before the form fields are actually reset to their default values. Syntax Following is the syntax for using the onreset attribute − The onreset attribute calls the specified JavaScript function when the user clicks the reset button or programmatically resets the form. Basic Example Following example demonstrates how to execute a ...
Read MoreHTML DOM Input Email maxLength Property
The HTML DOM Input Email maxLength property controls the maximum number of characters allowed in an email input field. This property returns or sets the maximum character limit for user input and returns -1 if no limit is defined. Syntax Following is the syntax for returning the maxLength property − inputEmailObject.maxLength Following is the syntax for setting the maxLength property − inputEmailObject.maxLength = number Parameters The number parameter represents a positive integer specifying the maximum number of characters allowed in the email input field. Setting it to -1 removes ...
Read MoreHow to create an ordered list in HTML?
An ordered list is a numbered list of items that displays content in a sequential, numbered format. It allows you to control the numbering sequence and group related items in a structured manner. HTML provides the tag to create ordered lists, with each item defined using the tag. The element automatically numbers each list item, starting from 1 by default. You can customize the numbering style using the type attribute to display numbers, letters, or Roman numerals. Syntax Following is the basic syntax to create an ordered list in HTML − ...
Read MoreWhy do we use the novalidate attribute in HTML?
The novalidate attribute in HTML is a Boolean attribute that disables the browser's built-in form validation when a form is submitted. When applied to a element, it allows users to submit forms even if required fields are empty or contain invalid data according to HTML5 validation rules. This attribute is particularly useful when you want to implement custom client-side validation using JavaScript, save form progress for later completion, or handle validation entirely on the server side. Syntax Following is the syntax for the novalidate attribute − ...
Read MoreExecute a script when the browser window is being resized in HTML?
The onresize attribute in HTML executes a JavaScript function when the browser window is resized. This event is commonly used to adjust layouts, recalculate dimensions, or trigger responsive behavior when users change their window size. Syntax Following is the syntax for the onresize attribute − Content The onresize attribute is typically used on the element or object to detect when the entire browser window is resized. Using onresize with Alert Following example shows how to trigger an alert when the browser window is resized − ...
Read MoreHTML DOM Input Email multiple Property
The HTML DOM Input Email multiple property controls whether an email input field can accept multiple email addresses separated by commas. When set to true, users can enter multiple valid email addresses in a single input field. Syntax Following is the syntax for getting the multiple property value − inputEmailObject.multiple Following is the syntax for setting the multiple property − inputEmailObject.multiple = boolValue Parameters The boolValue parameter can be the following − Value Description true The input email field accepts multiple ...
Read MoreHow to create an unordered list with disc bullets in HTML?
An unordered list in HTML displays items without numerical ordering, using bullet points instead. The element creates the list container, while elements define individual list items. By default, unordered lists use disc bullets, but you can customize the bullet style using CSS. Syntax Following is the syntax to create an unordered list with disc bullets in HTML − Item in list Item in list Item in list Since disc is the default bullet style for unordered lists, you can also create ...
Read MoreWhat is the difference between novalidate and formnovalidate attributes?
The novalidate and formnovalidate attributes are HTML5 attributes used to bypass form validation. The novalidate attribute is applied to the element to disable validation for the entire form, while formnovalidate is applied to individual submit buttons to override form validation on a per-button basis. Both attributes are Boolean attributes, meaning their presence enables the functionality regardless of their value. These attributes are particularly useful when you want to allow users to save form progress or submit incomplete forms in certain scenarios. Syntax Following is the syntax for the novalidate attribute − ...
Read More