Articles on Trending Technologies

Technical articles with clear explanations and examples

HTML DOM Local Storage clear() method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 366 Views

The HTML DOM Local Storage clear() method removes all key-value pairs from the localStorage object for the current domain. This method provides a quick way to empty the entire local storage without removing items individually. Syntax Following is the syntax for the localStorage clear() method − localStorage.clear() For sessionStorage, the syntax is − sessionStorage.clear() Parameters The clear() method does not accept any parameters. Return Value The method returns undefined and does not provide any return value. How It Works When localStorage.clear() is called, it removes ...

Read More

HTML DOM Button name Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 339 Views

The HTML DOM Button name property is associated with the name attribute of the element. The name property allows you to set or return the value of the name attribute of a button element. The name attribute is primarily used in forms to identify elements when submitting form data to the server and for accessing elements using JavaScript. Syntax Following is the syntax for setting the name property − buttonObject.name = "name" Following is the syntax for getting the name property − var name = buttonObject.name Here, name is ...

Read More

HTML onresize Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 170 Views

The HTML onresize attribute is an event handler that triggers when the user resizes the browser window. This attribute is primarily used with the element to detect window resize events and execute JavaScript functions in response to size changes. Syntax Following is the syntax for the onresize attribute − Where script is the JavaScript code or function to execute when the window is resized. Parameters The onresize attribute accepts a single parameter − script − JavaScript code or function call to execute when ...

Read More

HTML DOM Time Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 234 Views

The HTML DOM Time Object represents the element in the Document Object Model. This object provides properties and methods to interact with HTML time elements, allowing developers to access and manipulate datetime information programmatically. The element is used to represent a specific period in time, such as dates, times, or durations. It provides semantic meaning to temporal content and can be styled with CSS or manipulated with JavaScript. Syntax To create a Time object using JavaScript − var timeObject = document.createElement("TIME"); To access an existing time element − var ...

Read More

HTML DOM timeStamp Event Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 309 Views

The HTML DOM timeStamp property returns the elapsed time in milliseconds since the document was loaded when an event was created or triggered. This property is particularly useful for measuring performance, timing user interactions, and creating time-based game mechanics. The timeStamp property only works if the event system supports it for the particular event type. Most modern browsers support this property for common events like mouse events, keyboard events, and touch events. Syntax Following is the syntax for accessing the timeStamp property − event.timeStamp This returns a number representing the time in milliseconds ...

Read More

Types of graphics are supported by HTML5?

Devesh Chauhan
Devesh Chauhan
Updated on 16-Mar-2026 1K+ Views

Graphics are visual representations used to convey ideas and enhance the overall user experience of a website. They help communicate complex messages in a simple and understandable way through photos, diagrams, illustrations, and interactive elements. HTML5 provides several technologies for incorporating graphics into web pages. Graphics in HTML serve multiple purposes including enhancing webpage appearance, improving user interaction, and providing visual context. Let's explore the main types of graphics supported by HTML5. SVG (Scalable Vector Graphics) SVG stands for Scalable Vector Graphics. It is an XML-based markup language for describing vector graphics. SVG files are saved with ...

Read More

How Many HTML Colors are There?

Ayush Singh
Ayush Singh
Updated on 16-Mar-2026 606 Views

HTML provides a vast spectrum of colors through different notation systems. Using hexadecimal notation, HTML can display exactly 16, 777, 216 different colors. This extensive palette is created by combining three sets of two-digit hexadecimal values representing the intensity of RGB (red, green, and blue) components, ranging from #000000 (black) to #FFFFFF (white). Additionally, HTML includes 140 predefined color names like "red", "blue", and "forestgreen" that provide an easier way to specify common colors without memorizing hex codes. This combination of numerical precision and named convenience gives web developers powerful tools for creating visually appealing websites. Total Number ...

Read More

How to Use the \"Required\" Attribute with the Radio Input Field?

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

The HTML input element with the type attribute "radio" represents an option from a group in which no more than one option can be selected at the same time. These groups are typically defined by a number of radio buttons, each of which has the same value in the name attribute. When a radio button is selected, it is typically rendered as a small circle that is filled or highlighted. In contrast to checkbox controls, radio buttons rely heavily on the value attribute. When the form is submitted in HTML, only the selected option is sent along with the ...

Read More

HTML DOM Location host Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 207 Views

The HTML DOM Location host property returns or sets the hostname and port number of the current URL. This property combines both the hostname (like www.example.com) and port number (like 8080) in the format hostname:port. If no port is specified in the URL, only the hostname is returned. Syntax Following is the syntax for getting the host property − location.host Following is the syntax for setting the host property − location.host = "hostname:port" Return Value The location.host property returns a string containing the hostname and port number. If the ...

Read More

How to convert HTML to WordPress?

Ayush Singh
Ayush Singh
Updated on 16-Mar-2026 464 Views

HTML to WordPress conversion is the process of transforming a static HTML website into a dynamic WordPress site. While HTML provides clear structure and cross-platform compatibility, WordPress offers a user-friendly interface, content management system, and extensive customization options through themes and plugins. Converting HTML to WordPress enables easier content management, enhanced functionality, and greater flexibility for website maintenance and updates. Benefits of Converting HTML to WordPress WordPress migration offers numerous advantages for individuals, businesses, and organizations. Below are the key benefits of converting to WordPress − User-Friendly Content Management − WordPress provides an intuitive ...

Read More
Showing 12971–12980 of 61,297 articles
Advertisements