In this tutorial, we're going to learn how to play an mp3 file or an audio file using the video.js player. Playing an mp3 file using video.js is somewhat similar to playing an audio file in standard HTML5 but a few additional steps are required for video.js to support an mp3 file. Advantages of using playing mp3 files using video.js Using video.js to construct an mp3 player will provide you with more control over the audio file. All of the video.js-specific functions can be used on the audio, allowing for more flexibility. How to Play Mp3 with video.js Player? To ... Read More
The margin property in CSS can be used to centre a block element like a div horizontally. We can set the width of the element, so that, it prevents the container from stretching out. The block elements take the full space line which force other elements to take up the next line as the block elements have 100% of the container. Aligning the block elements to the center Any element that begins a new line on a web page is considered as a block-level element. For example, header tags, div, etc. These block elements take the full width of the ... Read More
You might have observed 2 options while setting the size of the elements using CSS properties, one an absolute unit and the other a relative unit. The absolute unit is identical and is fixed and its size can be set with cm, mm, px. On the other hand, relative unit is relative to something else which can be a parent element or any other element. In this tutorial, we are going to have a look at the comparison between the em and rem units in CSS. The Em unit The em unit makes it possible to change the size of ... Read More
The growing technology has led leaders to think strategically and make informed decisions that can help contribute to the company’s growth. The PMO (Project Management Office) plays a pivotal role in organizational growth. They execute projects, assign tasks to the employees based on their qualifications and expertise, track the project’s status, and consider other factors to ensure the successful completion of the project. How do you think the PMP performs all levels and complexities of operations without any hassle? Well, the C-suite is key to efficient project management and smooth organizational function. In this post, we are going to discuss ... Read More
Multiple values can be kept in a single variable by using arrays. Compare that to a variable that only has room for one value. Each item in an array has a number associated with it that you may access by using, referred to as a numeric index. Arrays in JavaScript begin at index zero and can be changed using a variety of operations. The addEventListener()Method The addEventListener() is a method in JavaScript that allows an element to be assigned an event handler, which will execute when a specified event occurs. This can include things like mouse clicks, form submission, ... Read More
You might have come across a situation when several div elements are together and are next to each other with the property as display: table-cell and there is no margin between them. If you want to set a margin between them, you will need to add margin by adding margin externally. In this article, we are going to have a look why does the display: table--row ignores margin and how can we add margin if we want to add it. How to add the margin to the table? You might be thinking if we add margin externally in the table-row ... Read More
A responsive webpage is a necessary key point which has to be always kept in mind while developing a website. The grid module enables the developer to design webpages easily without using a lot of positioning, as the id module provides a grid type layout system in which there are rows and columns. The auto-fill property The auto-fill property is used to fill the rows with possible columns, the column which is added will occupy the space and the other column will be empty. The auto-fill property is an important property of the CSS grid and is mostly used so ... Read More
CSS is widely known as the cascading style sheets and is used to style the elements which are created using the HTML tags and is responsible for the look and feel of the webpage. We can use CSS to change the color of the text, change the background, add any image or give space between texts. We can create many ways to display a single piece of content. In this article, we are going to explain the ease of maintenance with CSS and what are the benefits of the CSS. Advantages of CSS Following are the advantages of using CSS ... Read More
Creating radio buttons dynamically using an array in JavaScript is a useful way to provide users with multiple options for input. When the user clicks on one of the radio buttons, it will be selected and any other choices will be deselected automatically. This process can be automated by looping through an array that contains all the possible values and creating a new radio button element for each item in the array. To dynamically create radio button using an array, use the concept of createElement() and appendChild().Let’s look at the concept to understand more about dynamically creating a radio buttons. ... Read More
Showing and hiding elements is a common task in JavaScript. It can be used to create dynamic user interfaces, where the content changes depending on the user's input or interaction with the page. One way of doing this is to show a hidden div when a select option is selected. This article will guide you through how to do this using JavaScript. A Boolean attribute is the one that was chosen. It indicates that a choice should be preselected when the page loads if it is present. In the drop-down list, the pre-selected option will be shown first. To ... Read More