Found 10483 Articles for Web Development

How to set caption for an image using HTML?

Shabaz Alam
Updated on 12-Apr-2023 15:22:28

14K+ Views

HTML, or Hypertext Markup Language, is used to create web pages and define their structure and content. HTML has varieties of elements to create a web page. The image element is one of the essential elements of web content. Images are a powerful tool for presenting ideas and feelings on a web page and enhancing the visual appeal of a web page. Additionally, Image captions make this even more powerful because images alone are not enough to convey a message or provide context. Captions are short descriptions that provide additional information to the viewer along with the images. ... Read More

How to set checkbox size in HTML/CSS?

Shabaz Alam
Updated on 09-Sep-2024 17:59:18

7K+ Views

To set checkbox size in HTML/CSS, we will be using simple CSS properties. We will be understanding three different approaches to set checkbox size in HTML/CSS. In this article, we are having two checkboxes each having a label. Our task is to set checkbox size in HTML/CSS. Approaches to Set Checkbox Size in HTML/CSS Here is a list of approaches to set checkbox size in HTML/CSS which we will be discussing in this article with stepwise explaination and complete example codes. Setting Checkbox Size using height and width Properties Setting ... Read More

How to Set Color of Progress Bar using HTML and CSS?

Shabaz Alam
Updated on 02-Jul-2024 14:24:06

21K+ Views

To set color of progress bar, is an important part of website as progress bar displays progress of any process like file downloads, loading time, file uploads, and other similar tasks. In this article, we have a progress bar whose by default color is grey, our task is to change the color of the progress bar. Approaches to Set Color of Progress Bar Here is a list of approaches to set color of progress bar using html and css with step wise explaination and complete example codes. Progress Bar Color Using background Property ... Read More

JavaScript Program for Rotate a Matrix by 180 degrees

Ravi Ranjan
Updated on 06-Jun-2025 19:13:01

368 Views

To rotate a matrix by 180 degrees, can be achieved using various approaches. We have discussed three different approaches in this article with stepwise explanation of codes and examples. In this article, we are having a 2D square matrix, our task is to write a JavaScript program to rotate a matrix by 180 degrees. Example Input: matrix = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]] Output: [[16, 15, 14, 13], [12, 11, 10, 9], [8, 7, 6, 5], [4, 3, 2, 1]] Approaches to Rotate a Matrix ... Read More

JavaScript Program For Reversing Alternate K Nodes In A Singly Linked List

Prabhdeep Singh
Updated on 12-Apr-2023 12:23:26

217 Views

Reversing a linked list means arranging all the nodes of the linked list in the opposite manner as they were present earlier or moving the elements present at the last of the linked list towards the head and head nodes towards the tail. Alternate K nodes reversing means reversing the first k elements and then keeping the next k elements the same and again reversing the next k elements and so on. We will see the codes with the different approaches and explanations for each of them. For example If the given linked list is the: 1 ... Read More

JavaScript Program For Reversing A Linked List In Groups Of Given Size

Prabhdeep Singh
Updated on 12-Apr-2023 12:22:20

231 Views

A linked list is a linear data structure that consists of interconnected nodes. Reversing a linked list means changing the order of all its elements. Reversing a linked list in groups of a given size means, we are given a number and we will reverse the first given number of elements, and then for the next set we will reverse the elements. We will see the proper code with implementation. Examples Given linked list: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> null Given number: 3 Output: 3 -> 2 -> ... Read More

JavaScript Program for Reversal algorithm for right rotation of an array

Prabhdeep Singh
Updated on 12-Apr-2023 12:21:05

234 Views

Right rotation of an array means to rotate the elements of the array to their right side by a given number of times and for the number which are present at the edge they will move to the first index in their right rotation by assuming an array in a cycle form. We will implement a proper code to implement the algorithm with an explanation. Example Let us assume we have given array as [1, 2, 3, 4, 5, 6, 7, 8, 9] The number of right rotations of the array is 3 Output: 7 8 9 1 2 ... Read More

JavaScript Program for Reversal algorithm for array rotation

Prabhdeep Singh
Updated on 12-Apr-2023 12:19:55

255 Views

An array is a linear data structure used to store the different types of objects and we are given an array of size n and an integer k (where k is the number by which we will rotate an array). We will rotate the array by k elements and then return the rotated array. Rotation means we have to traverse the array from the given kth element and shift all the integers by one and we have to shift each element by 1 till the kth element came to position ‘0’ or we can say at index number ‘0’. Note ... Read More

JavaScript Program for Removing Duplicates From An Unsorted Linked List

Prabhdeep Singh
Updated on 12-Apr-2023 12:18:55

253 Views

The linked list is a linear data structure that consists of nodes, and each node is stored in memory in a non-contiguous manner. Nodes are connected by storing the address of the next node. We are given a linked list that will contain some integers in a random manner and not in a sorted manner. The task is to find the elements of the linked list which are repeated and we have to remove the duplicated ones. We will see the proper code and explanation. In this problem, we will keep the first copy of the elements of the ... Read More

Javascript Program For Removing Duplicates From A Sorted Linked List

Prabhdeep Singh
Updated on 12-Apr-2023 12:17:02

364 Views

Linked list is linear data structure and we have given a sorted linked list that consists of the integers. There are some numbers that may be duplicated or repeated and we have to remove them. As the given linked list is sorted, we can simply iterate over it and by using the while loop can remove the duplicate nodes from it. We will implement a proper code to understand the logic better with the discussion of time and space complexity. Example Given linked list is: 1-> 2 -> 2 -> 3 -> 4 -> 4 -> 4 -> 5 -> ... Read More

Advertisements