Articles on Trending Technologies

Technical articles with clear explanations and examples

Can the HTML5 Canvas element be created from the Canvas constructor?

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

The HTML5 element can be created in multiple ways − directly in HTML markup or dynamically through JavaScript using DOM methods. While there is no direct "Canvas constructor" in the traditional sense, JavaScript provides methods like createElement() to create canvas elements programmatically. The Canvas API is useful for drawing graphics via JavaScript and the HTML element. It can be applied to animation, game graphics, data visualization, photo editing, and real-time video processing. The Canvas API focuses primarily on 2D graphics, while the WebGL API renders hardware-accelerated 2D and 3D graphics using the same canvas element. Syntax ...

Read More

HTML DOM Input Month name Property

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

The HTML DOM Input Month name property gets or sets the value of the name attribute of an input field with type="month". The name attribute identifies the form field when data is submitted to the server, making it essential for form processing. Syntax Following is the syntax for getting the name property − object.name Following is the syntax for setting the name property − object.name = "text" Return Value The name property returns a string representing the value of the name attribute. If no name attribute is specified, it ...

Read More

How to specify the kind of text track in HTML?

Srinivas Gorla
Srinivas Gorla
Updated on 16-Mar-2026 243 Views

The kind attribute in HTML is used to specify the type of text track for the element. This attribute helps browsers understand how to handle and display different types of text tracks, such as subtitles, captions, descriptions, chapters, or metadata. Syntax Following is the syntax for the kind attribute − The kind attribute accepts one of the following values − subtitles − Translation of dialogue and sound effects (default value) captions − Transcription of dialogue, sound effects, and other audio information descriptions − Textual descriptions of video content for visually ...

Read More

Which HTML5 tags are more appropriate to represent money amount

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

When displaying money amounts in HTML5, several semantic tags can be used depending on the context and purpose. The choice depends on whether you need machine-readable data, emphasis, styling flexibility, or accessibility features. Available Options for Money Representation Here are the main approaches for representing monetary values in HTML5 − element − Provides both human-readable and machine-readable monetary values using the value attribute. element − For visual emphasis without semantic importance, suitable for highlighting prices in product listings. element − For semantically important amounts like total costs or final prices that need emphasis. ...

Read More

HTML DOM Input Month max Property

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

The HTML DOM Input Month max property returns and modifies the value of the max attribute of an input field with type="month". This property sets the latest month that users can select in a month picker control. Syntax Following is the syntax for returning the max value − object.max Following is the syntax for setting the max value − object.max = "YYYY-MM" Here, YYYY represents the year and MM represents the month (e.g., "2019-02" for February 2019). Return Value The max property returns a string representing the maximum ...

Read More

HTML DOM Input Month min Property

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

The HTML DOM Input Month min Property is used to set or return the value of the min attribute of an input field with type="month". This property defines the earliest month that users can select in the month input field. Syntax Following is the syntax for returning the min value − object.min Following is the syntax for setting the min value − object.min = "YYYY-MM" Here, YYYY represents the year (4 digits) and MM represents the month (01-12). For example, "2024-03" represents March 2024. Return Value The property ...

Read More

How do we create the title of the text track in HTML?

Anvi Jain
Anvi Jain
Updated on 16-Mar-2026 240 Views

The label attribute in HTML is used to create the title of text tracks in the element. This attribute provides a user-readable title for the track that appears in the browser's media controls, helping users identify and select different subtitle, caption, or description tracks. Syntax Following is the syntax for using the label attribute in the element − Where label specifies a user-readable title for the text track. This title is displayed in the browser's track selection menu. Track Element Attributes The element supports several important attributes for ...

Read More

HTML DOM Input Month readOnly Property

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

The HTML DOM Input Month readOnly property controls whether a month input field can be edited by the user. When set to true, the field becomes read-only and users cannot change its value, though the field remains focusable and its value is still included in form submissions. Syntax Following is the syntax for returning the readOnly property − object.readOnly Following is the syntax for setting the readOnly property − object.readOnly = true | false Parameters The readOnly property accepts the following boolean values − true − Makes ...

Read More

How to specify the language of the element's content in HTML?

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

The lang attribute in HTML specifies the language of an element's content. This attribute helps browsers, search engines, and screen readers understand the language being used, enabling proper text-to-speech pronunciation, spell checking, and search engine optimization. Syntax Following is the syntax for using the lang attribute − Content The language-code is typically a two-letter ISO 639-1 code (like "en" for English, "fr" for French) or a more specific variant (like "en-US" for American English). Common Language Codes Following are some commonly used language codes − en − English fr − ...

Read More

I need a client side browser database in HTML5. What are my options?

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

HTML5 provides several client-side storage options for web applications. These technologies allow you to store data directly in the user's browser without requiring a server connection, making your applications faster and more responsive. The main client-side storage options in HTML5 include Local Storage, Session Storage, IndexedDB, and Web SQL Database (deprecated). Each serves different use cases based on data persistence, storage capacity, and complexity requirements. Local Storage Local Storage is the most commonly used client-side storage mechanism. It stores data as key-value pairs and persists data until explicitly cleared by the user or the application. The data ...

Read More
Showing 13581–13590 of 61,298 articles
Advertisements