Aman Gupta

Aman Gupta

66 Articles Published

Articles by Aman Gupta

66 articles

How to Create a Form with Custom Buttons in HTML

Aman Gupta
Aman Gupta
Updated on 02-Dec-2024 607 Views

Overview Buttons are the components in HTML which perform a certain action when clicked. Various buttons perform various actions. The HTML has some predefined buttons with a certain type of action. In a HTML form when the tag is used by default, the simple button inside the form tag is of type submit. So when you click on a button inside the form tag it will submit the form on your desired path and depends on the GET and POST request. The submit location is defined in the action attribute of the form. The HTML form by default is ...

Read More

How do you create a box filled with color in HTML/CSS?

Aman Gupta
Aman Gupta
Updated on 25-Sep-2024 10K+ Views

To create a box filled with color in HTML/CSS, it can be achieved with HTML as we can create a simple frame of the box with the help of HTML and to fill the color we can use the CSS property. We will be discussing two different approaches to create a box filled with color. In this article, we are having a div or we can have any block element and our task is to create a box filled with color in HTML/CSS. Approaches to create a box filled with color Here is a list of approaches to create a ...

Read More

How to create list with roman number indexing in HTML

Aman Gupta
Aman Gupta
Updated on 21-Nov-2023 7K+ Views

Overview Indexing are the numbers which indicate the points or a position of a sentence. In HTML, we can do indexing in two ways: Unordered List (ul) and Ordered List (li). To make a list with a roman number in HTML we use the tag, the roman number is the number which is written in sequence so we use ordered list instead of unordered list. To make the ordered list with a roman number we should define the type of ordered list, that is the indexing in the list should be ‘a’, ’A’, ’I’ or ‘i’. So to make ...

Read More

How to count the number of notifications on an icon?

Aman Gupta
Aman Gupta
Updated on 20-Nov-2023 2K+ Views

Overview A notification icon is a common feature that exists in each and every application. In order to count the number of notifications and display it on an icon can be achieved with basic knowledge of JavaScript. So to build this feature we should have some prior knowledge about HTML Document Object Model (DOM), CSS, and Bootstrap. Approach To start building this feature first we had to link some of the Content Delivery Network (CDN) links to our HTML page. Font Awesome CDN Link − Bootstrap CDN Link − ...

Read More

How to create Portfolio Gallery using the HTML and CSS

Aman Gupta
Aman Gupta
Updated on 09-Nov-2023 2K+ Views

Overview A portfolio gallery can be a collection of any types of photos and videos that represent the past work of the organization. To build a portfolio gallery we will use HTML and CSS. The HTML will help us in building the skeleton of the portfolio gallery and CSS is used to make the styling of the portfolio. As the portfolio will also be the main component of our website so we will make this page responsive using some CSS properties. Algorithm Step 1 − Create a HTML boilerplate on your text editor. Step 2 − Create a container ...

Read More

How to find whether all element contains same class or not?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 566 Views

Overview A class in any element defines the type of the data contained in an element. A same class name can be taken by another tag or element also. There is no such property for the class attribute that the class name should be unique. To find whether all the elements contain the same classes or not, can be achieved with the help of HTML, CSS and JavaScript. The HTML provides the layout of the page and the layout for the elements for the same classes and the JavaScript will provide the functionality to check whether all the elements contain ...

Read More

How to find width of a div using vanilla JavaScript?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 2K+ Views

Overview A vanilla JavaScript is a framework of JavaScript, it provides mainly two different methods to find the width of a div using the "offsetWidth" and "clientWidth". Both methods have the ability to find the width of any element on a web page. In this vanilla JavaScript refers to the methods of the JavaScript that are predefined for the developers. It provides cross-platform compatibility. Syntax The Syntax to find the width of the div is given below. These two methods are used to calculate the width of the div. elementHTML.offsetWidth elementHTML.clientWidth elementHTML − It is the div ...

Read More

How to find position of HTML elements in JavaScript?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 2K+ Views

Overview JavaScript provides various methods for the manipulation and to get the information about the HTML elements. From the several methods JavaScript has its own predefined methods which returns the specific coordinates or position of the HTML element. These two methods are offsetLeft and offsetTop, these two methods return the exact position of the HTML elements. JavaScript also provides another function as getBoundingClientRect() this method also provides the same result as the offset method. The getBoundingRect() has four properties as top, left, right and bottom and the offset has only two properties that are left and top. Syntax The ...

Read More

How to find class of a clicked element using jQuery?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 3K+ Views

Overview We can easily find the class of the clicked element, the Jquery provides various methods which return the class name of the element when the element is clicked. The Jquery methods "attr()" and using "this.className" properties helps to find the class of an element. So to learn more about these methods we will be seeing the Examples which will cover both the methods. A class name is an attribute which defines the group or type of the data inside the tag. There can be different tags or elements which can contain the same class names but there in case ...

Read More

How to Find the Text on Page in ElectronJS?

Aman Gupta
Aman Gupta
Updated on 13-Oct-2023 969 Views

Overview A find text on a page is a feature which helps a user to find a word on the page. An electronJs is an open source framework which creates a desktop application which can run on every operating system with its cross platform compatibility. The electronJs has many predefined instance methods with their respective functionality. So to build this feature of find text on page the electronJs provides a "findInPage" method which takes the current focused window and scans all the text on the page. Syntax For finding the text on page, the electronJs provides the below Syntax for ...

Read More
Showing 1–10 of 66 articles
« Prev 1 2 3 4 5 7 Next »
Advertisements