AmitDiwan has Published 11365 Articles

How to create a password validation form with CSS and JavaScript?

AmitDiwan

AmitDiwan

Updated on 08-Dec-2023 15:20:47

945 Views

On a registration page, you must have seen an input filed to set the password. On entering the password, the validation system suggests you how to construct a password. For example, a password should have at least a number, character, it should be minimum 8 characters. In this tutorial, we ... Read More

How to Create a Parallax Scrolling Effect in CSS?

AmitDiwan

AmitDiwan

Updated on 08-Dec-2023 15:15:06

176 Views

By specifying different speeds for background and foreground content, we can create a parallax scrolling effect using CSS. On scrolling up and down, you can easily notice the difference, Mostly, you can find such effect on the home page of a website. Set the image First, place and image using ... Read More

How to create a pagination with CSS?

AmitDiwan

AmitDiwan

Updated on 08-Dec-2023 15:11:26

254 Views

When you give page numbers to each page of a book, it is called pagination. On a website, pagination allows dividing pages and is a series of interconnect pages. It divides and sets ordinal number pf pages. For example, the first 1, 2, 3, 4, 5 pages links are visible ... Read More

How to create a navigation menu with an input field inside of it?

AmitDiwan

AmitDiwan

Updated on 08-Dec-2023 15:05:10

373 Views

On a web page, you may need to place an input field on a navigation menu. Such input field can be used as a search box for the users to search anything on the website. To place the search input field on the right, use the float CSS property and ... Read More

Convert List of Characters to String in Java

AmitDiwan

AmitDiwan

Updated on 04-Dec-2023 11:26:04

343 Views

Let’s say the following is our list of characters − List list = Arrays.asList('W', 'e', 'l', 'c', 'o', 'm', 'e'); Convert the list of characters to string − String string = list.stream().map(String::valueOf).collect(Collectors.joining()); Example Following is the program to convert List of Characters to String in Java − import java.util.stream.Collectors; import java.util.Arrays; import java.util.List; public class Demo { ... Read More

The min-width and max-width declaration for Flexbox doesn't work on Safari? Why?

AmitDiwan

AmitDiwan

Updated on 24-Nov-2023 00:41:11

1K+ Views

To make the Flexbox work on all the web browsers, use the min-width and max-width equivalents of flex. For example, for this − min-width: 40%; max-width: 40%; Use the CSS Shorthand Property. It states flex-grow | flex-shrink | flex-basis as shown in the below syntax − flex: flex-grow flex-shrink ... Read More

HTML DOM getElementById() method

AmitDiwan

AmitDiwan

Updated on 23-Nov-2023 12:25:36

1K+ Views

The HTML DOM getElementById() method is used for returning an element by passing an id as a parameter to this function. It is one of the most commonly used and easiest method for getting elements to manipulate later. If the specified Id doesn’t exist, it returns NULL. Syntax Following is ... Read More

Importance of HashSet in Java

AmitDiwan

AmitDiwan

Updated on 23-Nov-2023 11:42:41

305 Views

The HashSet use Hashing to manipulate data. Let us see an example − Example import java.util.*; public class Demo{ private final String f_str, l_str; public Demo(String f_str, String l_str){ this.f_str = f_str; this.l_str = l_str; } ... Read More

HTML DOM Input Range disabled property

AmitDiwan

AmitDiwan

Updated on 22-Nov-2023 04:49:27

1K+ Views

The HTML DOM Input range disabled property is used for setting or returning if the range slider should be disabled or not. It uses boolean values with true representing the range slider should be disabled and false otherwise. The disabled property is set to false by default. However, the disabled ... Read More

HTML DOM contains() Method

AmitDiwan

AmitDiwan

Updated on 22-Nov-2023 04:42:39

904 Views

The HTML DOM contains() method is used to find whether a node is the descendant of the specified node. A descendant can be an immediate child of the node, grandchild and even great-grandchild. It returns a boolean true indicating the node is indeed the descendant of the specified node and ... Read More

Advertisements