HTML Articles

Page 111 of 151

How to remove underline from a link in HTML?

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

By default, HTML links are displayed with an underline to indicate they are clickable. However, you can remove this underline using the text-decoration CSS property. The most common approach is to use an inline style attribute directly on the link element. Syntax Following is the syntax to remove underline from a link using inline CSS − Link Text You can also use internal or external CSS to apply this style to multiple links − a { text-decoration: none; } Using Inline Style The inline style method applies the text-decoration: ...

Read More

How to merge table cells in HTML?

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

We use the colspan and rowspan attributes to merge cells in HTML tables. The rowspan attribute specifies the number of rows a cell should span vertically, whereas the colspan attribute specifies the number of columns a cell should span horizontally. These attributes should be placed inside the tag or tag to merge table cells and create more complex table layouts. Syntax Following is the syntax for the rowspan attribute to merge rows − cell data Following is the syntax for the colspan attribute to merge columns − cell data ...

Read More

How to use an animated image in HTML page?

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

Animated images in HTML are visual elements that display moving graphics on a web page. They are typically in GIF format (Graphics Interchange Format), which supports animation by storing multiple frames in a single file that play in sequence. We use the tag with the src attribute to add an animated image in HTML. The src attribute specifies the URL or file path of the animated image. You can also control the display size using the height and width attributes or CSS styling. Syntax Following is the basic syntax for adding an animated image − ...

Read More

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
Showing 1101–1110 of 1,509 articles
« Prev 1 109 110 111 112 113 151 Next »
Advertisements