Articles on Trending Technologies

Technical articles with clear explanations and examples

HTML5 Canvas drawings like lines are looking blurry

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

HTML5 Canvas drawings often appear blurry due to differences in device pixel ratios and improper coordinate positioning. This occurs because browsers scale canvas content differently across various devices and screen densities, leading to anti-aliasing effects that make lines and shapes appear fuzzy. The primary causes of blurry canvas drawings include − Device Pixel Ratio − Different devices have varying pixel densities, causing the browser to scale canvas content. Half-pixel positioning − Drawing on fractional pixel coordinates forces the browser to use anti-aliasing. Canvas size mismatch − When canvas display size differs from its actual resolution. ...

Read More

HTML DOM Input Hidden Object

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 620 Views

The HTML DOM Input Hidden Object represents an element with type="hidden" in an HTML document. Hidden input fields are invisible to users but store data that gets submitted with forms, making them useful for maintaining state information, tokens, or IDs. Syntax Following is the syntax to create an input hidden object − var hiddenInput = document.createElement("INPUT"); hiddenInput.setAttribute("type", "hidden"); You can also access an existing hidden input element − var hiddenInput = document.getElementById("hiddenFieldId"); Properties Following are the properties of HTML DOM Input Hidden Object − ...

Read More

How to create an ordered list with list items numbered with lowercase letters 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 numbering format. The tag creates ordered lists in HTML, while the tag defines individual list items. By default, ordered lists use numbers (1, 2, 3...), but you can customize the numbering format using the type attribute. To create an ordered list with lowercase letters (a, b, c...), use type="a" on the element. This is particularly useful for sub-lists, legal documents, or any content where alphabetical ordering is preferred over numerical. Syntax Following is the syntax to create an ...

Read More

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

Chandu yadav
Chandu yadav
Updated on 16-Mar-2026 229 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 235 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 453 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 246 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 285 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
Showing 13551–13560 of 61,299 articles
Advertisements