Found 9053 Articles for Front End Technology

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 use title tag in HTML Page?

Lokesh Badavath
Updated on 11-Nov-2022 08:00:57

561 Views

Titles are used to grab attention and predict the content of the web page. The tag defines the title of the content on the web page. It is required in an HTML document to display a title for the page in search-engine results. The title of the content should be placed between the … tags. This title is used inside the head tag. There should be one element in an HTML document. If we write more than one title for the content the first title tag is considered as a title. Syntax Following is the syntax ... Read More

How to Insert an Image in HTML Page?

Lokesh Badavath
Updated on 31-Aug-2023 02:18:20

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

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

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

3K+ 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 Paragraphs in HTML Page?

Lokesh Badavath
Updated on 11-Nov-2022 07:47:02

2K+ Views

The paragraph in the HTML document is used to express thoughts on the point in a clear way. In HTML the paragraph information placed inside the … tags. The tag in HTML defines a paragraph. These have both opening and closing tags. So anything mentioned within and is treated as a paragraph. A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph. The tag should be placed inside the body tag. Syntax Following is the syntax for the tag. paragraph of the ... 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

How to call a JavaScript function from C++?

vanithasree
Updated on 10-Feb-2020 10:44:18

755 Views

To call a JavaScript function from C++, generate a js file, which calls the function. The web page will load the JS and the function runs −int callId = 0; void callFunction() {    // the js file    ofstream fout("generate.js");    fout

How to create an HTML Document?

Lokesh Badavath
Updated on 11-Nov-2022 07:38:08

16K+ Views

HTML stands for Hyper Text Markup Language. It is the most widely used language to write web page. HTML document defines the structure of web page. HTML document begins with the declaration, and the HTML documents start and end with the and tags. HTML document is split into two parts − Head Body The head which contains the information about the document title etc. The information inside this tag does not display outside (on web page). The information of the head part is placed between … tags. Example Following is the example program for the ... Read More

Advertisements