Found 10483 Articles for Web Development

How to Create a Color Picker using HTML, CSS, and JavaScript?

Mayank Agarwal
Updated on 29-Feb-2024 15:07:48

2K+ Views

We can easily create a simple color picker on a palette in Javascript. The primary colors on a color picker are RGB i.e. Red, Green, and Blue. With the help of mixing these colors, we can form any color we want.In this article, we will be learning about how to get the RGB value from the user and form different colors with the help of CSS using the RGB color properties. The color intensity of RGB ranges from 0 to 255 where 0 is the least intensity and 255 is the highest intensity.When the intensity of all the 3 coolers ... Read More

How to Create a Profit and Loss Calculator using HTML, CSS, and JavaScript?

Mayank Agarwal
Updated on 21-Apr-2022 12:16:56

2K+ Views

In this article, we are going to create a calculator using JavaScript We will be using the basic math formulas to calculate the profit and loss. We will be returning the result in percentage along with the actual values.To calculate the Profit and Loss we need two things that are: CP (Cost Price) and SP (Selling Price).Formulas to Calculate Profit and Loss −Profit: SP – CPProfit Percentage: Profit/CP * 100Loss: SP – CPLoss Percentage: Loss/CP * 100Example 1In the example below, we have created a calculator that will calculate the profit and loss percentage as per the cost price and ... Read More

How to create a chart from JSON data using Fetch API in JavaScript?

Mayank Agarwal
Updated on 21-Apr-2022 13:04:04

5K+ Views

In this article, we are going to explore on how to create a chart after fetching the JSON data. To fetch JSON data we use fetch() method of Fetch API. We will first fetch the data and once the data is available we will feed it into the system to create a chart. The Fetch API provides a simple interface for accessing and manipulating HTTP requests and responses.Syntaxconst response = fetch(resource [, init])Parametersresource − This is the resource path from where the data is fetched.init − It defines any extra options such as headers, body, etc.ApproachThe steps can be defined ... Read More

Creating a Simple Calculator using HTML, CSS, and JavaScript

Mayank Agarwal
Updated on 05-Apr-2022 07:10:33

4K+ Views

A Student grade calculator is used for taking the grades input for all subjects and then calculating the percentage based upon the marks of the students. This calculator returns a fairly reliable indicator of student results.The simple formula for calculating grades is:$\text{Percentage}=\frac{\text{Marks Scored}}{\text{Total Marks}}\times 100$We are going to take the inputs using HTML, once the inputs are entered we will call the JS function to calculate the average percentage of these numbers and will return the same to the user.Steps for creating a calculator −We will be taking inputs from the user using the input tag.Once the inputs are taken, ... Read More

What are the differences between AngularJs and Google Web Toolkit (GWT)?

Bhanu Priya
Updated on 23-Mar-2022 10:37:11

310 Views

Let us understand the concepts of AngularJS and Google Web Toolkit (GWT) before learning the differences between them.Google Web ToolkitIt is an open-source set of tools which allows creating and maintaining JavaScript front-end applications in Java by the web developers. It was launched in the year 2006 by Google and the code is written in Java.The operating system that supports GWT is Linux, Windows, OS X, FreeBSD. It helps in creating RICH Internet Applications. It helps in converting java source code to equivalent JavaScript.FeaturesThe features of Google Web Toolkit are as follows −DynamicReusable UI componentsSimple RPC mechanismBrowser history managementSupport for ... Read More

How to use CSS selector as a locator in Selenium?

Debomita Bhattacharjee
Updated on 08-Feb-2022 10:59:14

1K+ Views

We can locate elements with locator CSS Selector in Selenium webdriver. The general expression to create a CSS expression is tagname[attribute='value']. We can utilize the id and class attributes to create a CSS.With id, the syntax of a CSS expression is tagname#id. For instance, for a CSS expression - input#txt-loc, input is the tagname and the txt-loc is the value of the id attribute.With class name, the syntax of a CSS expression is tagname.class. For instance, for a CSS expression - input.txt-cls, input is the tagname and the txt-cls is the value of the class attribute.If there are n sub-elements(children) ... Read More

Tips to create an engaging infographic in Canva

Zahwah Jameel
Updated on 09-Dec-2021 11:10:00

197 Views

How to Make Your Infographic Stand Out?Stuck at a creative block? Don’t know how to effectively express your ideas through infographics? This article will help you kick-start your journey of creating an engaging infographic using Canva. Here we will highlight some of the major points that you need to keep in mind in order to create an engaging infographic.Focus on the Targeted AudienceWhen creating an infographic, there is always a vision in mind, whether it’s a small business looking to increase its traffic on social platforms or an educator looking for an effective method to educate their students. For this, ... Read More

How to create Infographics with Canva?

Zahwah Jameel
Updated on 27-Feb-2023 17:42:34

992 Views

Tired of the same old boring presentation? Want to add something to make your classes more interesting? An infographic maybe the solution to this problem.Infographics are one of the most engaging methods of visual representation of data and statistics in formats that are readable and easy to interpret for your audience on any form of visual platform.Infographics are one of the most effective ways to transform your ideas into an amazing piece of visual content when provided with the right tools. Canva can be this tool for you.Why should you use Canva for Infographics?Canva is a highly versatile free graphic ... Read More

How to make your text stand out using Canva tools?

Zahwah Jameel
Updated on 09-Dec-2021 11:01:38

1K+ Views

Creating a template in Canva means a panorama of different elements and components all working together in harmony to enhance the design. But at times the presence of multiple elements that can overshadow the most important part of the design is the text. If you are someone who wants to enhance the appearance of your text so that it is not completely overwhelmed by the other elements of your design, then you have come to the right place.But making your design stand out can be a very difficult task, especially when there is such a plethora of features available on ... Read More

How to create a semi-transparent background in Canva?

Zahwah Jameel
Updated on 09-Dec-2021 10:57:10

2K+ Views

If you are someone who wants your text to not get overwhelmed by the background, then a semi-transparent background maybe a good option for you. So, here is a guide to help to set a semi-transparent background to your design.Creating a Semi-transparent Background in CanvaThis feature is most effective to use when you want to increase the transparency of the background of a template you have designed. It gives your design a clarity and also makes sure the audience focuses solely on the contents of the design.To implement this, follow the steps given below −Select the design you want to ... Read More

Advertisements