AmitDiwan has Published 10744 Articles

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

535 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

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

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

Importance of HashSet in Java

AmitDiwan

AmitDiwan

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

430 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

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

How can I vertically center a div element for all browsers using CSS?

AmitDiwan

AmitDiwan

Updated on 21-Nov-2023 21:37:07

987 Views

To vertically center a div element for all browsers using CSS, use the Flexbox. CSS3 provides another layout mode Flexible Box, commonly called as Flexbox. Using this mode, you can easily create layouts for complex applications and web pages. Unlike floats, Flexbox layout gives complete control over the direction, alignment, ... Read More

How to create a file upload button with HTML?

AmitDiwan

AmitDiwan

Updated on 21-Nov-2023 21:12:19

1K+ Views

To create a file on upload button with HTML, the code is as follows −Example File upload button example Click on the "Choose File" button to upload a file: OutputThe above code will produce the following output −On clicking the “Choose file” button −

How to Clear the Canvas for Redrawing?

AmitDiwan

AmitDiwan

Updated on 21-Nov-2023 20:56:07

1K+ Views

To clear the canvas for redrawing, use the canvas.clearRect() method in HTML. It clears the specified pixels. The parameters of the method includes − x − The x-coordinate to clear y − The y-coordinate to clear width − The width of the rectangle to clear height − The height ... Read More

HTML DOM Form submit() method

AmitDiwan

AmitDiwan

Updated on 20-Nov-2023 12:33:44

1K+ Views

The HTML DOM Form submit() method is used for submitting the form data to the address specified by the action attribute. It acts as a submit button to submit form data and it doesn’t take any kind of parameters.SyntaxFollowing is the syntax for Form submit() method −formObject.submit()ExampleLet us look at ... Read More

Advertisements