Found 8895 Articles for Front End Technology

Why do we use head tag in HTML Page?

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

2K+ 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 05-Oct-2023 12:18:46

159K+ 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 Following is the usage of hyperlinks − < html> ... -- text < / a> In the 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

1K+ 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 31-Aug-2023 02:18:20

90K+ Views

Images make content more interesting by helping readers 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. We should use the tag inside … tag. The tag specifies an image to be displayed in an HTML document. 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 ... Read More

How to create a dialog with “yes” and “no” options in JavaScript?

Anvi Jain
Updated on 30-Jul-2019 22:30:21

3K+ Views

No, you cannot create a dialog box with “yes” or “no”. A confirmation dialog box in JavaScript has “Ok” and “Cancel” button.To create a dialog with “yes” or “nor”, use a custom dialog box.ExampleLive Demo                          function functionConfirm(msg, myYes, myNo) {             var confirmBox = $("#confirm");             confirmBox.find(".message").text(msg);             confirmBox.find(".yes, .no").unbind().click(function() {                confirmBox.hide();             });         ... Read More

How to make page links in HTML Page?

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

81K+ 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

How to change button label in alert box using JavaScript?

Shubham Vora
Updated on 02-Aug-2022 13:46:21

4K+ Views

In this tutorial, we will learn to change the button label in the alert box using JavaScript. The alert box is one kind of popup box that is useful to show some important information to the user. We can pop up the alert box using JavaScript's alert() method. The default alert box contains the simple message and ok button, which pops out at the top center of the browser's screen. The default alert box with only messages and without any style looks weird. So, we need to make it stylish and change the style of the button and the label ... Read More

How to create headings in HTML page?

Lokesh Badavath
Updated on 11-Nov-2022 07:43:28

5K+ Views

Headings are the titles or the subtitles of the content that you want to display on the web page. Headings help us to get an idea on 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 have different level of heading tags. Heading is defined with to tags. It is important to use headings to show the HTML document structure. headings should be used for main headings, followed by headings, then , and so on up to . Syntax Following ... Read More

Advertisements