Found 2556 Articles for HTML

How to use title tag in HTML Page?

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

564 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

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

What are HTML 5 Standard Events?

Giri Raju
Updated on 16-Jun-2020 11:38:33

449 Views

When a user visits your website, they do things like click on text and images and given links, hover over things etc. These are examples of what JavaScript calls events.We can write our event handlers in JavaScript or VBScript and you can specify these event handlers as a value of event tag attribute. The HTML5 specification defines various event attributes as listed below −AttributeValueDescriptionOfflinescriptTriggers when the document goes offlineOnabortscriptTriggers on an abort eventonafterprintscriptTriggers after the document is printedonbeforeonloadscriptTriggers before the document loadsonbeforeprintscriptTriggers before the document is printedOnblurscriptTriggers when the window loses focusOncanplayscriptTriggers when media can start play but might to ... Read More

How to use Python Regular expression to extract URL from an HTML link?

Bhanu Priya
Updated on 04-Oct-2023 18:14:33

2K+ Views

URL is an acronym for Uniform Resource Locator; it is used to identify the location resource on internet. For example, the following URLs are used to identify the location of Google and Microsoft websites − https://www.google.com https://www.microsoft.com URL consists of domain name, path, port number etc. The URL can be parsed and processed by using Regular Expression. Therefore, if we want to use Regular Expression we have to use re library in Python. Example Following is the example demonstrating URL − URL: https://www.tutorialspoint.com/courses If we parse the above URL we can find the website name and protocol ... Read More

How to use external “.js” files in an HTML file?

Bhanu Priya
Updated on 04-Oct-2023 17:30:46

6K+ Views

What is JavaScript? JavaScript is a client-side scripting language which is used to create a dynamic webpage. It is integrated with the HTML code. JavaScript code is inserted between and tags as shown below. document.getElementById("demoId").innerHTML = "JavaScript Example"; JavaScript is a programming language that adds rich interactivity to your website (for example: games, responses when buttons are pressed or data entered in forms, dynamic styling, animation etc..). In its most common form, JavaScript resides inside HTML documents, and can provide levels of interactivity to web pages that are not achievable ... Read More

Should I write my script in the body or the head of the HTML?

Bhanu Priya
Updated on 04-Oct-2023 16:32:33

436 Views

In HTML, the script tag can be inserted either in head section or in body section, generally the java script code is inserted between script open and close tags. //JavaScript code here We can insert any number of scripts in an HTML document. Scripts can be placed in , or section or in both of an HTML page. Now, let’s see if there is any difference if we insert script in body or head of HTML. It is better to place the java script before closing of the tag rather than ... Read More

Advertisements