Web Development Articles

Page 98 of 801

How do we send an email using HTML forms?

Giri Raju
Giri Raju
Updated on 16-Mar-2026 58K+ Views

To send an email using HTML forms, you can use the mailto protocol in the form's action attribute. This method opens the user's default email client with pre-filled information from the form fields. However, this approach has significant limitations and is not recommended for production websites. Syntax Following is the basic syntax for using mailto in HTML forms − The enctype="text/plain" attribute ensures the form data is sent in a readable plain text format rather than URL-encoded format. Basic Email Form Example Following example demonstrates a ...

Read More

How to merge table columns in HTML?

Anjana
Anjana
Updated on 16-Mar-2026 68K+ Views

To merge table columns in HTML, use the colspan attribute in the or tag. This attribute allows a cell to span across multiple columns, effectively merging them together. The value of colspan specifies how many columns the cell should span. Syntax Following is the syntax for merging table columns using the colspan attribute − Content Content Where number represents the number of columns the cell should span across. Basic Table Structure Let us first create a basic 3x3 table to understand the structure before applying column merging − ...

Read More

How to set Heading alignment in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 58K+ Views

Headings are the titles or subtitles of the content that you want to display on the web page. Headings help us to get an idea of the content on the web page. Headings and subheadings represent the key concepts ideas and supporting ideas in the content of the web page. HTML has different levels of heading tags from to . Heading alignment refers to the horizontal positioning of heading text within its container. In modern HTML, we align headings using the CSS text-align property with the style attribute, as the deprecated align attribute is no longer recommended. ...

Read More

How to set cell padding in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 51K+ Views

In HTML, cell padding refers to the space between the cell borders and the content inside table cells. We can set cell padding using CSS properties like padding applied through inline styles, internal stylesheets, or external CSS files. Cell padding improves table readability by providing breathing space around cell content. Syntax Following is the syntax to set cell padding in HTML using inline styles − Header Content Cell Content Following is the syntax using CSS selectors − th, td { padding: value; } The value can be ...

Read More

How to limit an HTML input box so that it only accepts numeric input?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 38K+ Views

In this article, we will learn how to limit an HTML input box so that it only accepts numeric inputs. The most effective way to restrict input to numbers is using . This creates a numeric input field that automatically validates user input and provides built-in controls like spinner buttons. Additionally, we can use attributes like min, max, and step to further control the allowed numeric values. Syntax Following is the basic syntax to create a numeric input field − Following is the syntax with additional attributes for range control − ...

Read More

How to set background image of a webpage?

Alankritha Ammu
Alankritha Ammu
Updated on 16-Mar-2026 33K+ Views

Beautiful webpages are a very strong means of catching user attention. In this article, we are going to see how we can add an image as the background image of a web page using HTML and CSS approaches. Methods to Set Background Image There are two primary approaches to setting an image as the webpage's background image − Using background attribute − The traditional HTML approach (deprecated in HTML5) Using CSS background-image property − The modern and recommended approach Method 1: Using Background Attribute The background attribute can be used in the ...

Read More

How to redirect from an HTML page?

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

Page redirection is a situation where you click a URL to reach page X, but internally you are directed to another page Y. This happens due to page redirection mechanisms. Website developers use redirection when they need to move content to a new location, restructure their site, or temporarily redirect users during maintenance. To redirect from an HTML page, we use the META tag with the http-equiv="refresh" attribute. This provides an HTTP header that tells the browser to automatically redirect after a specified time delay. Syntax Following is the syntax for HTML page redirection − ...

Read More

How to set cell width and height in HTML?

Lokesh Badavath
Lokesh Badavath
Updated on 16-Mar-2026 42K+ Views

In HTML tables, cell width and height can be controlled using CSS styling. The most common approach is to use inline CSS with the style attribute on (table data) or (table header) elements. You can specify dimensions in pixels, percentages, or other CSS units. Syntax Following is the syntax for setting cell width and height using inline CSS − Content You can also apply dimensions to header cells − Header Here, value can be specified in pixels (px), percentages (%), em units, or other CSS measurement units. ...

Read More

How to automatically redirect a Web Page to another URL?

Arushi
Arushi
Updated on 16-Mar-2026 46K+ Views

Page redirection is a technique where visitors clicking on a URL are automatically directed to a different page than originally intended. This happens seamlessly in the background and is commonly used for moving content, temporary maintenance pages, or directing users to updated URLs. To redirect from an HTML page, use the meta tag with the http-equiv attribute. This attribute provides an HTTP header for the value of the content attribute, which specifies the number of seconds to wait before redirecting and the destination URL. Syntax Following is the syntax for HTML page redirection using the meta tag ...

Read More

How to use datetime input type in HTML?

Arjun Thakur
Arjun Thakur
Updated on 16-Mar-2026 29K+ Views

The datetime-local input type in HTML allows users to select both date and time using a built-in date and time picker. This input type creates a form control that displays a calendar and time selector when clicked, making it easy for users to enter accurate date-time values. Syntax Following is the syntax for the datetime-local input type − The value format follows the ISO 8601 standard: YYYY-MM-DDTHH:MM where the T separates the date and time components. Basic Example Following example demonstrates how to use the datetime-local input type in a form ...

Read More
Showing 971–980 of 8,010 articles
« Prev 1 96 97 98 99 100 801 Next »
Advertisements