Found 2202 Articles for HTML

Explain different markup languages other than HTML

Yaswanth Varma
Updated on 26-Sep-2023 12:55:13

473 Views

Markup languages are computer languages that are used to structure, format, or describe relationships between various portions of text documents with the aid of symbols or tags introduced in the document. Compared to traditional programming languages with strict syntax, these languages are easier to read. There are several markup languages available but the most popular among them are discussed one by one. Let's dive into the article for understanding different markup languages other than HTML. XML Extensible Markup Language (XML) is a markup language used to store structured data. The elements are defined by using custom tags, which support a ... Read More

How to Add a Datepicker in Form using HTML?

Yaswanth Varma
Updated on 26-Sep-2023 12:37:29

1K+ Views

Forms are a crucial and typical component of any application. They include entry fields for things like name, gender, email, and many others. A datepicker is used on several forms to fill up the date type inputs. We are aware that choosing a certain day from a calendar is done via a datepicker. Instead of typing the date by hand, a datepicker is an interactive dropdown that makes it simple to select it from a calendar. In many situations, it is also used to save a user's birthdate. Let's dive into the article for getting better understanding on how to ... Read More

Differentiate between <th> & <thead> tags in HTML Table

Yaswanth Varma
Updated on 26-Sep-2023 12:03:59

1K+ Views

Before we learn about the difference, it is important to understand that both the and tags are utilized to provide headers in HTML tables. However, the tag is used to provide a header in a table cell, whereas the tag is used to provide a header for a table group. Both tags are not replaced with one another, and the outputs will remain unchanged, Because the distinction can only be understood by developers or browsers. Let's dive into the article to get a better understanding of the difference between and tags in HTML tables. ... Read More

How to Change Background Color According to the Mouse Location using JavaScript?

Aayush Mohan Sinha
Updated on 12-Sep-2023 15:13:01

1K+ Views

JavaScript is a famous programming language that is one of the core languages of the World Wide Web (WWW) alongside HTML and CSS. It allows the programmer to capture events and modify the Document Object Model (DOM). In this article we are going to see how we can make use of JavaScript to change the background color according to the location of the mouse cursor. Mousemove Event The mousemove is an event which gets fired at an element when the cursor of the mouse is moved, and it is still inside the element of concern. It gives us information about ... Read More

How to Change an HTML Element Name Using jQuery?

Aayush Mohan Sinha
Updated on 12-Sep-2023 15:08:41

1K+ Views

jQuery is a JavaScript library created to make event handling, CSS animation, Ajax, and DOM tree navigation and manipulation easier. In this article we are going to see how we can change the name of an element using jQuery. Algorithm We are going to follow a three−way procedure to change the name of any element using jQuery: Identify and select the element we want to change. Copy all the attributes of the selected element to a temporary object. Create a new element with the new name and copy all the attributes to it. Replace the old element with this ... Read More

How to Change a Button Text on Click Using LocalStorage in Javascript?

Aayush Mohan Sinha
Updated on 12-Sep-2023 15:05:21

500 Views

JavaScript is a famous programming language that is one of the core languages of the World Wide Web (WWW) alongside HTML and CSS. It allows the programmer to capture events and modify the Document Object Model (DOM). In this article we are going to see how we can make use of JavaScript to change the text of the button whenever it is clicked with the help of localStorage. localStorage The localStorage is a read−only property of the window interface that allows the user to store data. The saved information is kept between browser sessions. The localStorage property is like sessionStorage, ... Read More

What is the Difference Between <b> and <strong> , <i> and <em> Tags?

Eesha Gandhi
Updated on 12-Sep-2023 13:10:18

853 Views

In this article we will discuss the differences between the and tags, and tags and look at some examples which use these tags. and tags The HTML element is used to draw the reader's attention to elements whose contents are otherwise unimportant. It highlights a section of text in bold to make it more visible to the user. It's a fashion statement. It conveys no additional significance. As a result, if we only need to increase the font-weight of a specific word, phrase, or paragraph for presentation purposes, we should use the ... Read More

How do I Display Images From Another Origin in My Angular Web Application?

Eesha Gandhi
Updated on 12-Sep-2023 13:08:22

898 Views

Using the Assets Directory We can serve an image in angular by first placing it in our project's assets directory, where we can create a separate directory for images or simply leave it in the assets directory as is. We can open the specific component typescript (.ts) file where we want to serve the image once we have placed all of the required images in the assets directory. Now we can store the image's URL in a variable within the function Object() { [native code] } so that it is initialised when the component is created. Demo.Component.ts import { Component, ... Read More

How do you Put Space between Two Objects in the Same Row?

Eesha Gandhi
Updated on 12-Sep-2023 13:06:09

464 Views

Using Margin and Padding Properties Additional spacing can be added to the top, right, bottom, or left of any HTML element. However, before deciding on the type of space to add around the element or object, it is important to understand the difference between margin and padding. Padding is used to surround the element within the border whereas the margin is used for surrounding the element outside the border. The margin property specifies the amount of space around an HTML element. We can use negative values to overlap content. The child elements do not inherit the values of the margin ... Read More

How to Auto Checked the Checkbox and Auto Display the Results When Checked

Eesha Gandhi
Updated on 12-Sep-2023 13:02:31

2K+ Views

A checkbox is created by using the tag with the type="checkbox" attribute (also called a tickbox). Users can select multiple options by checking one or more checkboxes. In HTML, the checkbox can be used alone or in conjunction with the "form" attribute. When the question or form is submitted, the data from the checked checkboxes is collected and saved in the backend. The type attribute of the element creates it, as shown in the following syntax: Checkboxes with clickable labels are more usable. It allows users to toggle checkboxes on and off by clicking the labels. ... Read More

Advertisements