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
HTML Articles
Page 110 of 151
HTML 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 MoreHTML DOM Input Email name Property
The HTML DOM Input Email name property returns or sets the value of the name attribute of an email input element. This property is commonly used for form data identification and JavaScript manipulation. Syntax Following is the syntax for getting the name property − inputEmailObject.name Following is the syntax for setting the name property − inputEmailObject.name = 'string' Parameters string − A string value that specifies the name of the email input element. Return Value The property returns a string representing the current ...
Read MoreHTML DOM Input Email required Property
The HTML DOM Input Email required property determines whether an email input field must be filled out before submitting a form. This property corresponds to the required HTML attribute and provides a way to access and modify the required state of email input elements using JavaScript. Syntax Following is the syntax for getting the required property value − inputEmailObject.required Following is the syntax for setting the required property − inputEmailObject.required = booleanValue Parameters The booleanValue parameter can be one of the following values − Value ...
Read MoreHTML DOM Input Email type Property
The HTML DOM Input Email type property returns or sets the type attribute of an input element that is currently of type "email". This property allows you to dynamically change the input type from email to other supported input types using JavaScript. Syntax Following is the syntax for returning the type value − inputEmailObject.type Following is the syntax for setting the type value − inputEmailObject.type = stringValue Return Value The property returns a string representing the current type of the input element. For an email input, it returns "email". ...
Read MoreHTML DOM Input Email value Property
The HTML DOM Input Email value property allows you to get or set the value of an email input field. This property returns a string representing the current email address in the input field, and you can also assign a new email string to change the field's value programmatically. Syntax Following is the syntax for getting the email input value − inputEmailObject.value Following is the syntax for setting the email input value − inputEmailObject.value = "emailString" Return Value The value property returns a string that represents the current value ...
Read MoreHTML DOM Input FileUpload autofocus Property
The HTML DOM Input FileUpload autofocus property controls whether a file upload input field automatically receives focus when the page loads. This property corresponds to the HTML autofocus attribute and can be used to programmatically set or check the autofocus state of file input elements. Syntax Following is the syntax for getting the autofocus property value − inputFileUploadObject.autofocus Following is the syntax for setting the autofocus property − inputFileUploadObject.autofocus = booleanValue Return Value The autofocus property returns a boolean value indicating whether the file upload input has autofocus enabled ...
Read MoreHow to set background color in HTML?
Setting the background color in HTML allows you to customize the appearance of your web page and create visually appealing layouts. In modern HTML5, background colors are set using CSS, either through inline styles or external stylesheets. Syntax Following is the basic syntax to set background color using the CSS background-color property − Alternatively, you can use CSS in the section − body { background-color: colorname; } Note − The bgcolor attribute was deprecated in HTML5. Always use the CSS background-color property instead. Setting ...
Read MoreHow to center align text in table cells in HTML?
We use the CSS property text-align to center align text in table cells. The text-align property controls the horizontal alignment of content within and elements. By default, table header cells () are center-aligned, while table data cells () are left-aligned. We can override this default behavior using CSS to achieve the desired alignment. The property accepts values like center, left, right, and justify. Syntax Following is the syntax to center align text in elements − Table header... Following is the syntax to center align text in elements − ...
Read MoreHow to make page links in HTML Page?
A link is a connection from one web page to another web page. We can add page links to a web page using HTML links, which are hyperlinks. The tag defines a hyperlink and is used to link from one page to another. The href attribute is used with the tag, which indicates the link's destination. To create page links in an HTML page, we need to use the href attribute of the and tag. Make sure that the tag is placed within the … tags. The link text is visible. Clicking on ...
Read MoreHow to limit the number of characters allowed in form input text field?
In this article, we will learn how to limit the number of characters allowed in form input text field using HTML attributes. HTML provides built-in attributes to control the character limits in input fields. The maxlength attribute sets the maximum number of characters allowed, while the minlength attribute sets the minimum number of characters required for validation. Syntax Following is the syntax for the maxlength attribute − Following is the syntax for the minlength attribute − Both attributes can be used together to set a character range ...
Read More