Web Development Articles - Page 112 of 801
533 Views
In this article, we will learn to count triplets with a sum smaller than a given value in JavaScript. Triplets in an array whose sum is less than a provided number is a popular problem in competitive coding and algorithm design. Problem Statement Given an array of integers and a target sum, we need to find the number of triplets (a, b, c). For exampleInput const arr = [5, 1, 3, 4, 7]; const sum = 12;Output 4 Explanation: The valid triplets are :(1, 3, 5)(1, 3, 4)(1, 4, 5)(1, 3, 7), all having a sum of less than 12. ... Read More
206 Views
We will be writing a program to count the number of rotations required to sort an array in non-increasing order. The program will use a loop to traverse the array and keep track of the maximum element found so far. When a smaller element is found, we will increment the rotation count and update the maximum element. In the end, the rotation count will be returned as the result of the program. This program will help us efficiently sort the array and determine the number of rotations required to achieve a non-increasing order. Approach The approach to counting rotations required ... Read More
4K+ Views
To center a div using flexbox property of CSS, we will be using CSS flexbox and it's properties. In this article, We will understand and perform following three things to center a using the Flexbox property of CSS: Center div Using flexbox on Horizontal Axis Center div Using flexbox on Both Axes Center Multiple Items Using Flexbox Center div Using flexbox on Horizontal Axis To center div on Horizontal axis, we will be using CSS justify-content property which centers div horizontally. Example Here is ... Read More
20K+ Views
To center a div using CSS grid property, we will be using CSS grid layout and it's properties. CSS grid is one of the most widely used elements in CSS which is similar to flexbox. CSS grids are two-dimensional layout systems on the web. We can place the elements in rows, columns, or both with the help of a grid. In this article, we shall understand how to center a div using the CSS grid property only. We will be using three approaches for this. Approaches To center a div using CSS grid Property ... Read More
411 Views
The tag is used to create the traditional component called tables in HTML. For designing web pages, it is essential to understand how to improve the overall visualization of the design. Aligning the table in the center is one such important aspect. This tutorial will teach us how to center the table with CSS. Use The margin-left and margin-right Properties This is a popular method to center align the table element in HTML and CSS. CSS's margin-left and margin-right properties are used to set an element's left and right margins, respectively. The margins create space outside the element's border, ... Read More
941 Views
The card component in Tailwind CSS is an important concept in web page design used especially in e-commerce websites, blogging websites, etc. .Tailwind CSS is famous for building attractive websites. This article will explain how to build card components using Tailwind CSS. How To Add single Card Component In Tailwind CSS Tailwind CSS offers us a very convenient way to add card components. The card components can also hold other sub-components like video, audio, images, etc. Also, we can easily customize the overall design using the properties available. It is also possible to add animations and hover effects to ... Read More
3K+ Views
While designing webpages using plain HTML, CSS, and JavaScipt, programmers often prefer developing advanced CSS designs to make the website attractive. Creating animations using keyframes and other techniques is one of the most popular techniques nowadays. However, we can also use the JavaScript code to create animations such as the bouncing ball effect. This method gives us more control over the animations. This article will first explain how to build a bouncing ball using HTML and CSS. We will also learn how to write JavaScript code to achieve similar animations. Create Bounce Ball Using Keyframes It is very difficult to ... Read More
548 Views
Division Element as know as is normally used for grouping the HTML element and then by using CSS we style them. An animation is a graphical element with visual effects to make it much more attractive. In HTML and CSS, we commonly name the element as . This article will explain how CSS binds animations to the division elements. Use The keyframes Method To Define The Animation The keyframe method is the most commonly used method to create animation effects in CSS. Example .container { ... Read More
413 Views
Becoming a full-stack developer is the dream of many engineering students. Full stack development means building a web 2.0+ application with dynamic web pages consisting of databases, videos, images, etc. This article will discuss how to become a full-stack web developer in 2023. Learn The Basics Of Web development The first and foremost important step to becoming a full-stack developer is to learn a few basic languages which are popularly used to build web applications. HTML − This is a markup language used to design the skeleton of the web application. Among several versions available, you should consider ... Read More
4K+ Views
While using a tag, the browser often places the items within the container in the next line. For example, programmers need to place the headers in a single line to create the navigation component. We can use the inline, inline-block, flex-box properties, etc., to avoid new lines with the tag. This article will explain how to avoid a new line with a tag by following approaches like inline property, flex-box property, etc. Use inline Property One popular method to avoid new lines with tags is to use the inline property. This property forces the new lines to stay the same ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP