Dishebh Bhayana has Published 20 Articles

How to author fast-loading HTML pages?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 17:53:50

We can optimize our web application in various ways, and cause our web page to load faster, and in a more efficient way, which not only will reduce the load on the web servers, but also increase the SEO rankings of the website. Let’s discuss the different ways through which ... Read More

How to disable browser print options (headers, footers, margins) from the page with CSS?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:37:47

We can control the print preview page’s header, footer, and margin just with the help of CSS, and even achieve the desired layout and orientation of the paged media. We will be using @page directive to achieve our results. While previewing a print page in the browser, we see some ... Read More

How to create a printable webpage using CSS media queries?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:37:11

We can create a printable webpage, and control the styling in the print preview of a page using the CSS media query print property, @media print. @media print is a CSS media query that allows us to add page styling to the print preview page of any webpage. Using this, ... Read More

How to Create a Pricing Table using HTML and CSS?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:36:28

We can create a basic pricing table using just HTML and CSS. A pricing table can be a useful feature to implement in different websites where the purchase of commodities is involved, for example, an e-commerce web application, or travel websites. Let’s learn to create a such table with the ... Read More

How to create the previous and next buttons and non-working on the end positions using JavaScript?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:35:10

We can create previous and next buttons that would be non-working (or disabled) at their end positions by using vanilla javascript. Javascript is a powerful browser-level language with which we can control and manipulate the DOM elements easily. Here, we will create 2 buttons, and change an HTML element’s content ... Read More

How to create pagination in Bootstrap 4?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:34:27

To implement pagination in our web application, we use the different classes provided to us in Bootstrap 4, like “pagination”, “page-item”, “active”, “disabled”, and so on. Pagination means specifying a page number for a particular page in a series of pages. This could apply to a web application that has ... Read More

How to create numbering using counter-increment property in CSS?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:33:22

The “counter-increment” property given in CSS is used to increase or decrease the counter values that we can display on a webpage using CSS. CSS counters are useful when we want to count the occurrences of an HTML element in a webpage. We will also use the “counter-reset” CSS property ... Read More

How to automatically close all collapsible elements inside of the accordion when closing the accordion?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:32:25

We will use the bootstrap accordion component in our article to demonstrate how to collapse all the children's accordions inside the parent accordion. An accordion is a collapsible component that helps to display an expand/collapse type of content on the webpage. In this article, we will use the Bootstrap 5 ... Read More

How to Automatically Close Alerts using Twitter Bootstrap?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:30:51

We can automatically close the Bootstrap Alert component by using the “close” method and “hide” class provided by Twitter bootstrap. Twitter Bootstrap Alert component is used to display an alert with a message to the user, often in response to a user action or an event. Approach 1: Using Close ... Read More

How to Automatic Refresh a web page in a fixed time?

Dishebh Bhayana

Dishebh Bhayana

Updated on 22-Feb-2023 11:29:41

We can auto-refresh a web page by either using a “meta” tag with the “http-equiv” property, or by using the setInterval() browser API. Automatic refreshing websites have certain use cases to them, for example, while creating a weather-finding web application, we may want to refresh our website after a set ... Read More

Advertisements