Mohit Panchasara has Published 87 Articles

if/else condition in CSS

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:59:12

2K+ Views

The CSS is useful for styling the content of web pages. We can access HTML elements differently and use various CSS properties to style the content. Sometimes, developers require to style a particular HTML element based on several conditions. For example, we allow users to submit the form on the ... Read More

How to replace a string by another string in Angular JS?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:57:29

631 Views

Angular JS is a popular JavaScript framework that offers developers a range of useful tools for creating dynamic web applications. A common requirement in web development is to change specific words or phrases within a given text. In this tutorial, we will explain how to replace one string with another ... Read More

How to prevent XSS with HTML/PHP?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:52:45

333 Views

Cross-Site Scripting (XSS) is a major threat to web application security because it allows attackers to inject malicious scripts into reputable websites. This attack depends on innocent consumers, exposing important information or potentially gaining control of their accounts. Understanding and combating XSS threats is critical for maintaining a strong security ... Read More

How to remove controls of a text canvas using Fabric.js?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:48:36

206 Views

Fabric.js is a powerful tool written in JavaScript that makes it easier to build applications with interactive and dynamic graphics using HTML5 canvas. It offers many useful features, including the ability to add controls such as resizing and rotation handles to objects on the canvas. Sometimes, though, you might want ... Read More

How to pass data into a bootstrap modal?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:45:21

3K+ Views

Bootstrap is a CSS framework allowing developers to style HTML elements without writing any CSS code. We can use pre-defined classes of Bootstrap with HTML elements to style them. The Bootstrap also contains the modal. The simple meaning of the modal is the pop-up box. For example, an alert box, ... Read More

HTML width/height Attribute vs CSS width/height Property

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:40:47

177 Views

While developing web pages, many times, developers require to manage the size of different HTML elements such as image, div element, span element, etc. Developers can use the width and height CSS properties or HTML attributes to manipulate the dimensions of a particular element. In this tutorial, we will see ... Read More

How to record and play audio in JavaScript?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:38:11

2K+ Views

Are you also willing to add a custom audio recording feature to your web application? If yes, you are in the right place, as we will learn to record and play audio using JavaScript in this tutorial. Some applications like Discord allow you to record the audio and store it ... Read More

How to put the text inside of a created icon?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:36:34

350 Views

Sometimes, developers require to put the text in the icons. For example, adding the total number of likes inside the ‘like’ icon makes UI better, adding a comment inside the comment icon, showing a particular number in any icon, etc. In HTML, we can add the text and icon both ... Read More

How to print a page using jQuery?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:35:20

2K+ Views

Allowing users to print the web page can be a great feature in many scenarios. For example, users can print the invoice, the whole article if they are on the web page containing the blog, some important data, etc. The JQuery contains the print() method allowing us to print the ... Read More

How to prevent text in a table cell from wrapping using CSS?

Mohit Panchasara

Mohit Panchasara

Updated on 26-Jul-2023 12:25:06

2K+ Views

In HTML, the table is useful to show the data in the formatted way on the web page. For example, we can show student, product, order, subscription, etc., data. Sometimes, we get lengthy data that we need to show in the table format. For example, product descriptions can be longer ... Read More

Advertisements