Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles by Lokesh Badavath
Page 3 of 7
How to Change the Color of Links in HTML?
HTML links are hyperlinks that connect one web page to another. By default, links appear in specific colors: unvisited links are blue and underlined, visited links are purple and underlined, and active links are red and underlined. However, we can customize these colors using CSS to match our website's design. Syntax Following is the basic syntax for creating HTML links − Link text To change link colors, we use CSS pseudo-classes with the following syntax − a:link { color: colorname; } /* Unvisited link */ a:visited { ...
Read MoreHow to remove underline from a link in HTML?
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 MoreHow to change the target of a link in HTML?
The target attribute of the tag controls where a link opens when clicked. This attribute allows you to specify whether the link should open in the same window, a new tab, or in specific frames within a frameset. Syntax Following is the syntax to change the target of a link in HTML − Link text Target Attribute Values The target attribute accepts the following values − _blank − Opens the link in a new tab or window. _self − Opens the link in the current tab or window (default behavior). ...
Read MoreHow to create a bookmark link in HTML?
A bookmark link in HTML allows users to jump to specific sections within the same webpage or to sections on different pages. Bookmarks are particularly useful for long documents, creating table of contents, or providing quick navigation to important sections. HTML bookmarks work by combining the id attribute to mark target sections and anchor links with hash (#) references to jump to those sections. When clicked, the browser automatically scrolls to the bookmarked location. Syntax To create a bookmark link, first add an id attribute to the target element − Section Heading Then ...
Read MoreHow to create headings in HTML page?
Headings are the titles or subtitles of content that you want to display on a web page. They help users understand the structure and hierarchy of information, making content easier to scan and navigate. HTML provides six different levels of heading tags, from to , where represents the most important heading and the least important. Heading tags should be used in logical order to create proper document structure. Use for main headings, followed by for major sections, then for subsections, and so on. This hierarchy is important for both search engine optimization and ...
Read MoreHow to make page links in HTML Page?
A link is a connection from one web page to another web page. We can add page links to a web page using HTML links, which are hyperlinks. The tag defines a hyperlink and is used to link from one page to another. The href attribute is used with the tag, which indicates the link's destination. To create page links in an HTML page, we need to use the href attribute of the and tag. Make sure that the tag is placed within the … tags. The link text is visible. Clicking on ...
Read MoreHow to Insert an Image in HTML Page?
To insert an image in HTML page is a very common and easy task that enhances the appearance of any web page. It makes a web page look more attractive and visually engaging. In this article, we will explore three different approaches to insert an image in HTML page using HTML tags and CSS properties. Each method serves different purposes and offers unique advantages depending on your specific requirements. Approaches to Insert an Image in HTML Page Here is a list of approaches to insert an image in HTML page which we will be discussing in this ...
Read MoreWhat is horizontal rule in HTML Page?
The tag in HTML creates a horizontal rule that serves as a visual separator between content sections on a web page. It displays as a horizontal line and is most commonly used to divide content thematically, making the page structure clearer and more readable. The tag is a self-closing element in HTML, meaning it doesn't require a closing tag. It creates a thematic break in the content flow and is rendered as a horizontal line by default. Syntax Following is the syntax for the tag − The tag ...
Read MoreHow to use image height and width attribute in HTML Page?
Images make web content more engaging and help users better understand the information presented. In HTML, we can control the display size of images using the width and height attributes of the tag. The tag is a self-closing element that requires the src attribute to specify the image location. The width and height attributes allow us to define the display dimensions of the image without modifying the original file. Syntax Following is the syntax for using width and height attributes with the image tag − The width and height values ...
Read MoreHow to set background color in HTML?
Setting the background color in HTML allows you to customize the appearance of your web page and create visually appealing layouts. In modern HTML5, background colors are set using CSS, either through inline styles or external stylesheets. Syntax Following is the basic syntax to set background color using the CSS background-color property − Alternatively, you can use CSS in the section − body { background-color: colorname; } Note − The bgcolor attribute was deprecated in HTML5. Always use the CSS background-color property instead. Setting ...
Read More