Articles on Trending Technologies

Technical articles with clear explanations and examples

HTML DOM fullscreenElement property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 209 Views

The HTML DOM fullscreenElement property returns the element that is currently displayed in fullscreen mode on the page. If no element is in fullscreen mode, it returns null. Syntax Following is the syntax for the fullscreenElement property − document.fullscreenElement Return Value The property returns − Element object − The DOM element currently displayed in fullscreen mode. null − If no element is currently in fullscreen mode. Browser Compatibility Due to different browser implementations, vendor prefixes are required for cross-browser compatibility − Browser Property Name ...

Read More

How to Make the Text Input Non-Editable

Eesha Gandhi
Eesha Gandhi
Updated on 16-Mar-2026 5K+ Views

In an HTML document, the tag is used to represent a form input control. In most cases, the input tag is used within the element to declare input controls that allow users to enter data. Depending on the type attribute, an input field can be of various types. The input tag is a self-closing element with only attributes. Labels for the input element can be defined using the tag. By setting the appropriate type attribute, it can be used to represent text fields, checkboxes, dropdowns, buttons, and other inputs. The value attribute is used to specify ...

Read More

HTML DOM Link rel Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 179 Views

The HTML DOM Link rel property sets or returns the relationship between the current document and the linked document. This property corresponds to the rel attribute of the element and specifies how the linked resource relates to the current document. Syntax Following is the syntax for getting the rel attribute value − linkObject.rel Following is the syntax for setting the rel attribute to a value − linkObject.rel = valueString Parameters valueString − A string that specifies the relationship between the current document and the linked document. It can ...

Read More

HTML option value Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 476 Views

The HTML option value attribute defines the value that will be sent to the server when a form is submitted. The value attribute specifies what data is transmitted for each option in a select dropdown, which may differ from the visible text displayed to users. Syntax Following is the syntax for the option value attribute − Display Text Where text is the value sent to the server, and Display Text is what users see in the dropdown. How It Works When a user selects an option and submits the form, the browser ...

Read More

HTML DOM Ol reversed Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 215 Views

The HTML DOM Ol reversed property sets or returns whether an ordered list should display its numbering in descending order (from highest to lowest) instead of the default ascending order (from lowest to highest). Syntax Following is the syntax for returning the reversed property − olObject.reversed Following is the syntax for setting the reversed property − olObject.reversed = booleanValue Parameters The booleanValue parameter can be one of the following − Value Description true Sets the list numbering in descending order (highest ...

Read More

How do you open HTML files on your phone?

Ayush Singh
Ayush Singh
Updated on 16-Mar-2026 39K+ Views

Opening HTML files on your phone allows developers, designers, and anyone else to view website source code or offline web content directly on mobile devices. HTML files are the foundation of websites, containing the markup that browsers render into web pages. This article provides a comprehensive guide on how to open HTML files on both Android and iOS devices using various methods. Whether you're testing a website, viewing offline documentation, or examining HTML source code, mobile devices offer several convenient ways to access and display HTML content. Methods for Opening HTML Files There are four primary methods ...

Read More

How to Make HTML dt and dd Elements Stay on the Same Line

Eesha Gandhi
Eesha Gandhi
Updated on 16-Mar-2026 2K+ Views

HTML Description List or Definition List displays elements in dictionary format. The and tags are used together within the tag to define terms and their descriptions. By default, and elements display on separate lines, but CSS can be used to make them appear side by side on the same line. Default Description List Behavior Let us first see how description lists appear by default − Default Description List Programming Languages ...

Read More

HTML onpaste Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 301 Views

The HTML onpaste attribute is an event handler that triggers when a user pastes content into an HTML element. This event occurs when content is pasted using Ctrl+V, right-click paste, or any other paste operation. Syntax Following is the syntax for the onpaste attribute − Content Where script is the JavaScript code to execute when the paste event occurs. Parameters script − JavaScript code or function to execute when content is pasted into the element. Commonly Used Elements The onpaste attribute is most commonly used with form elements ...

Read More

How to create a responsive custom scrollbar using CSS?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 662 Views

Custom scrollbars enhance the visual appeal of web pages by replacing the browser's default scrollbar with custom-styled alternatives. Using CSS webkit-scrollbar pseudo-elements, you can create responsive scrollbars that match your website's design theme and provide better user interaction feedback. Syntax The basic syntax for creating custom scrollbars uses webkit pseudo-elements − ::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: #888; } ::-webkit-scrollbar-thumb:hover { background: #555; } Webkit Scrollbar Pseudo-Elements The following webkit pseudo-elements ...

Read More

How to Display Ellipsis in the span Element Having Hidden Overflow?

Eesha Gandhi
Eesha Gandhi
Updated on 16-Mar-2026 2K+ Views

The element is a generic inline container used for styling text portions and grouping inline content. When text content within a element overflows its container boundaries, it can disrupt the layout. The ellipsis (...) provides a visual indicator that text has been truncated, maintaining clean layout while showing that more content exists. Displaying ellipsis in a span element requires combining CSS properties for overflow handling and text truncation. This technique is essential for responsive designs where text must fit within fixed-width containers. Syntax Following is the basic syntax for a span element − ...

Read More
Showing 12951–12960 of 61,297 articles
Advertisements