Articles on Trending Technologies

Technical articles with clear explanations and examples

Execute a script at the start of a drag operation in HTML?

Chandu yadav
Chandu yadav
Updated on 16-Mar-2026 174 Views

The ondragstart attribute in HTML executes a JavaScript function when a user begins dragging an element. This event is the first to fire in the HTML5 drag and drop sequence, allowing you to set up data transfer and configure the drag operation before the element starts moving. Syntax Following is the syntax for the ondragstart attribute − Content The ondragstart attribute accepts a JavaScript function that receives a DragEvent object containing information about the drag operation. How It Works When a drag operation begins, the ondragstart event fires immediately. This is typically ...

Read More

HTML DOM Input Email size Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 188 Views

The HTML DOM Input Email size property returns or sets the size attribute of an input email field. This property determines the visible width of the input field in characters. If not specified, the default value is 20. Syntax Following is the syntax for returning the size property − inputEmailObject.size Following is the syntax for setting the size property − inputEmailObject.size = number Parameters The size property accepts a numeric value representing the number of characters the input field should display. The value must be a positive integer. Common ...

Read More

How to create an ordered list with list items numbered with uppercase letters in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 10K+ Views

A list is a collection of related items displayed consecutively, usually one below the other. HTML provides two main types of lists: unordered lists and ordered lists. An ordered list displays items in a numbered sequence by default. You can create an ordered list using the tag and define individual list items using the tag. HTML supports 5 different types of ordered list numbering − type="1" − Creates a numbered list starting from 1 (default) type="A" − Creates a list numbered with uppercase letters starting from A type="a" − Creates a list numbered with ...

Read More

Set where to send the form-data when a form is submitted in HTML?

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 311 Views

In HTML, the action attribute specifies where to send form data when a form is submitted. This attribute defines the URL of the server-side script or page that will process the form data. Additionally, the formaction attribute on individual form controls can override the form's default action for specific buttons. Syntax Following is the syntax for the action attribute on the form element − Following is the syntax for the formaction attribute on input elements − Parameters The action and formaction attributes ...

Read More

Which browser has the best support for HTML 5 currently?

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 1K+ Views

HTML5 has become the standard for modern web development, introducing semantic elements, multimedia support, and enhanced form controls. However, browser support for HTML5 features varies significantly across different browsers and versions. Why Use HTML5 HTML5 was developed to handle multimedia elements and create sophisticated web applications. It offers numerous improvements that make it essential for modern web development − Cleaner code structure − HTML5 introduces semantic tags like , , , and that replace generic elements, making code more meaningful and accessible. Native audio and video support − The and ...

Read More

HTML DOM Input Hidden name Property

Sharon Christine
Sharon Christine
Updated on 16-Mar-2026 214 Views

The HTML DOM Input Hidden name property is used to get or set the value of the name attribute of a hidden input field. Hidden input fields are form elements that are not visible to users but can store data that needs to be submitted with the form. Syntax Following is the syntax for getting the name property − object.name Following is the syntax for setting the name property − object.name = "text" Where object is a reference to the hidden input element, and "text" is the new name value ...

Read More

How to specify which form element a calculation is bound to with HTML?

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 250 Views

The HTML tag creates a clickable label for form elements. When a user clicks on the label text, it activates the associated form control as if they clicked directly on it. The for attribute specifies which form element the label is bound to by referencing the element's id attribute. Syntax Following is the syntax for binding a label to a form element − Label Content The for attribute value must exactly match the id attribute value of the target form element. How Label Binding Works When you bind a label ...

Read More

Are button HTML tags outside of a form valid?

Yaswanth Varma
Yaswanth Varma
Updated on 16-Mar-2026 3K+ Views

The HTML element can be used both inside and outside of forms. Button tags outside of a form are completely valid HTML and serve many purposes beyond form submission, such as triggering JavaScript functions, navigation, and interactive features. Syntax Following is the syntax for the HTML tag − Button Text The type attribute determines the button's behavior. When a button is outside a form, it defaults to type="button", which means it performs no default action and requires JavaScript to function. Button Types and Default Behavior The behavior of a button ...

Read More

HTML autocomplete Attribute

Ankith Reddy
Ankith Reddy
Updated on 16-Mar-2026 342 Views

The autocomplete attribute in HTML controls whether the browser should automatically fill input fields based on previously entered values. When set to on, the browser displays suggestions from user's history, while off disables this functionality entirely. Syntax Following is the basic syntax for the autocomplete attribute − The autocomplete attribute can also accept specific values for better control − Attribute Values The autocomplete attribute accepts the following values − on − Enables autocomplete functionality. The browser will suggest values based on user's previous entries. off ...

Read More

How to create an ordered list with list items numbered with uppercase roman numbers in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 2K+ Views

An ordered list is a numbered list of items that allows you to control the sequence number and group related items in a structured format. HTML supports various types of ordered lists using the tag, with list items defined by the tag. The type attribute of the tag determines the numbering style. To create an ordered list with uppercase Roman numerals, we use type="I". This displays list items as I, II, III, IV, V, and so on. Syntax Following is the syntax to create an ordered list with uppercase Roman numerals − ...

Read More
Showing 13551–13560 of 61,297 articles
Advertisements