HTML Articles

Page 32 of 151

How to create mail and phone link in HTML?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 16-Mar-2026 2K+ Views

Creating mailto and tel links in HTML allows users to easily contact you directly from your webpage. A mailto link opens the user's default email client with your email address pre-filled, while a tel link initiates a phone call on mobile devices or opens the default calling application on desktops. Mailto Links A mailto link creates a hyperlink that, when clicked, opens the user's default email client and creates a new email message to a specified email address. Syntax Following is the basic syntax for creating a mailto link − Email Us ...

Read More

How to automatically transfer visitors to a new web page?

Asif Rahaman
Asif Rahaman
Updated on 16-Mar-2026 1K+ Views

As a website owner or developer, there may be times when you need to automatically transfer visitors to a new web page. Whether it's because you've moved a page to a new URL or want to redirect visitors to a different section of your site, there are several different methods you can use to achieve this. In this article, we'll explore the different types of client-side redirects you can use to automatically transfer visitors to a new web page, and provide examples of how to implement each one. Meta Refresh Redirects One of the easiest ways to ...

Read More

HTML DOM Input Time form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 179 Views

The HTML DOM Input Time form property returns a reference to the form element that contains the input time field. This property is read-only and provides access to the parent form object, allowing you to retrieve form attributes like ID, name, or other form-related properties. Syntax Following is the syntax for accessing the form property − inputTimeObject.form Return Value The form property returns a reference to the HTMLFormElement object that contains the input time element. If the input time element is not inside a form, it returns null. Example − Getting Form ...

Read More

HTML DOM Input Time name Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 139 Views

The HTML DOM Input Time name property allows you to get or set the value of the name attribute for a time input element. The name attribute is used to identify form data when it's submitted to the server and can also be referenced in JavaScript for client-side manipulation. Syntax Following is the syntax to get the name property − inputTimeObject.name Following is the syntax to set the name property − inputTimeObject.name = "string" Return Value The property returns a string that represents the value of the name attribute ...

Read More

How to build custom form controls using HTML?

Asif Rahaman
Asif Rahaman
Updated on 16-Mar-2026 506 Views

Custom form controls allow developers to create unique, styled form elements that match their website's design and provide enhanced user experiences. While HTML provides standard form elements like checkboxes, radio buttons, and input fields, building custom controls gives you complete control over appearance and behavior. Syntax Following is the basic syntax for creating custom form controls − Control Label The pattern uses a label wrapper, hidden input element, custom visual indicator, and descriptive text. CSS provides the styling and pseudo-elements handle ...

Read More

How to link back out of a folder using the a-href tag?

Saba Hilal
Saba Hilal
Updated on 16-Mar-2026 2K+ Views

When working with HTML websites that have multiple folders and subfolders, you often need to create links that navigate back to parent directories. The anchor tag with the href attribute allows you to link back out of a folder using relative or absolute paths. This article demonstrates how to create navigation links that move from a subfolder back to its parent folder. Syntax Following is the syntax for linking back to a parent folder using relative paths − Back to Parent Following is the syntax for linking using absolute paths − Back ...

Read More

HTML DOM Input Time stepUp( ) Method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 153 Views

The HTML DOM Input Time stepUp() method is used to increase the value of a time input field by a specified number of minutes. This method provides a programmatic way to increment time values, making it useful for creating time pickers and scheduling interfaces. Syntax Following is the syntax for the stepUp() method − inputTimeObject.stepUp(number) Parameters The stepUp() method accepts one optional parameter − number − An optional integer that specifies the number of minutes to increase the time value. If omitted, the default value is 1. Return Value ...

Read More

HTML DOM Input Time type Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 276 Views

The HTML DOM Input Time type property returns or sets the type attribute of an HTML input element that accepts time values. This property allows you to dynamically change or retrieve the input type using JavaScript, providing flexibility in form handling and validation. Syntax Following is the syntax for returning the type value − inputTimeObject.type Following is the syntax for setting the type value − inputTimeObject.type = stringValue Parameters The stringValue parameter represents the type of input element. For time inputs, common values include − ...

Read More

How to load a hyperlink from one iframe to another iframe?

Saba Hilal
Saba Hilal
Updated on 16-Mar-2026 806 Views

Loading content from one iframe to another iframe is a common web development task that enables dynamic content display without reloading the entire page. This technique uses the target attribute of anchor tags to specify which iframe should display the linked content. Syntax Following is the syntax for targeting an iframe from a hyperlink − Link Text The target attribute in the anchor tag must match the name attribute of the destination iframe. How It Works When a hyperlink with a target attribute is clicked, the browser loads the specified URL ...

Read More

How to locate the user\'s position in HTML?

Saba Hilal
Saba Hilal
Updated on 16-Mar-2026 471 Views

The HTML Geolocation API allows web applications to access the user's current geographic location through JavaScript. This feature enables websites to provide location-based services like displaying coordinates, showing maps, or finding nearby places. The user must grant permission before the browser can access their location data. HTML Geolocation API The Geolocation API is accessed through the navigator.geolocation object, which provides methods to retrieve the user's current position. The API works with GPS, WiFi networks, cellular towers, and IP addresses to determine location coordinates. Syntax Following is the basic syntax for getting the user's current location − ...

Read More
Showing 311–320 of 1,509 articles
« Prev 1 30 31 32 33 34 151 Next »
Advertisements