Found 2202 Articles for HTML

How to set font color in HTML?

Lokesh Badavath
Updated on 29-Aug-2023 07:35:05

161K+ Views

We use the style attribute to set the font color in HTML. The style attribute specifies an inline style for an element, with the CSS color property. The attribute is used with the HTML tag, with the CSS color property. HTML5 do not support the tag, so the CSS style is used to add font color. The tag deprecated in HTML5. Syntax text… Example In the example below, we set the font color of the text inside the tag. DOCTYPE html> HTML Font color ... Read More

How to set background color in HTML?

Lokesh Badavath
Updated on 29-Aug-2023 07:08:04

244K+ Views

Setting the background color of a web page or an element on the web page, enable us to create unique layouts for the web page. To set the background color in HTML, use the style attribute, with the CSS property background-color inside the body tag of the HTML document. HTML5 do not support the tag bgcolor attribute, so the CSS style is used to add background color. The bgcolor attribute deprecated in HTML5. We can change the background color by overriding the property with the other property. Syntax Example Following is the example program to set background ... Read More

How to create a link to send email in HTML?

Lokesh Badavath
Updated on 18-Nov-2022 09:53:52

2K+ Views

We use HTML tag defines a hyperlink used to link web pages. The href attribute of the tag, which indicates the link's destination. Which provides us option to specify an email address. To create a link to send mail we use mailto:to specify email address inside href attribute in HTML. Syntax Following is the syntax to link a mail address to the web page. xx@gmail.com Same as the way we link a mobile number. We use mailto instead of tel inside a href attribute. Example Following is the example program to link a mail address to the ... Read More

Why do we use head tag in HTML Page?

Lokesh Badavath
Updated on 11-Nov-2022 08:15:36

3K+ Views

The tag is a container for all the head elements in an HTML page. We use … tag to add it to HTML page. head tag contains the title of the document, styles, scripts, and other HTML elements. The element is a container for metadata-data about data and is placed between the … tag. The following elements can go inside the element − − Use in every HTML page defines the title of the content. − Used to apply a simple style to HTML document − Specify a default URL and a default ... Read More

How to Insert Hyperlink in HTML Page?

Bhanu Priya
Updated on 02-Dec-2024 15:13:25

162K+ Views

To insert a hyperlink in a HTML page, we have to utilize the anchor tags and labels, which are used to characterize the connections. The tag demonstrates where the hyperlink begins and the < / a> tag shows where it closes. Whatever text gets added inside these labels, will function as a hyperlink. Add the URL for the connection in the In this article we are having an HTML document and our task is to insert hyperlink in HTML page. Following is the usage of hyperlinks − < html> ... ... Read More

How to use image height and width attribute in HTML Page?

Lokesh Badavath
Updated on 11-Nov-2022 08:13:37

2K+ Views

Images make content more interesting by helping readers to understand the content better on the web page. We can insert images into the HTML page. To insert image in an HTML page, use the tags. It is an empty tag, containing only attributes since the closing tag is not required. The src attribute is used to add the image source which is the URL of the image(location of the file). The alt attribute is for adding alternate text, width is for adding width, and height is for adding the height of the image. We use style attribute to ... Read More

How to use href attribute in HTML Page?

Lokesh Badavath
Updated on 11-Nov-2022 08:11:28

2K+ Views

The href attribute specifies the URL of the page the link goes to (href attribute specifies the link's destination). We should use href attribute with tag so it will be a hyperlink. This tag should be used inside the … tags. Syntax Following is the syntax for the tag, which uses href attribute to specify the link address. link text Example Following is the example program to use href attribute in an HTML page. DOCTYPE html> Click this to navigate to the Brave home page How ... Read More

What is horizontal rule in HTML Page?

Lokesh Badavath
Updated on 21-Nov-2023 21:06:13

2K+ Views

The tag defines a break in an HTML page, or it is used to separate content in an HTML page using a horizontal line and is most often displayed as a horizontal rule. The tag defines a break with the horizontal line in an HTML page. The tag is an empty element. It only has an opening tag i.e, . Syntax Following is the syntax for the tag. ... Example Following is the example program, which uses tag to separate content on the web page. DOCTYPE html> LOK SABHA ... Read More

How to Insert an Image in HTML Page?

Lokesh Badavath
Updated on 21-Oct-2024 14:57:03

95K+ Views

To insert an image in HTML page, is a very common and easy task that enhances the appearence of any web page. It makes a web age look more attractive. In this article, our task is to insert an image in HTML page. We have used three different approaches using HTML tags and CSS properties to insert an image in HTML page. 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 article with stepwise explaination and complete example codes. ... Read More

How to make page links in HTML Page?

Lokesh Badavath
Updated on 01-Sep-2023 02:14:02

84K+ Views

A link is a connection from one Web page to another web page. We can add page links to a web page. HTML links 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 with in the … tags. The link text is visible. Clicking on the link text will ... Read More

Advertisements