Found 8591 Articles for Front End Technology

How to Trim White Spaces from input in ReactJS?

Rushi Javiya
Updated on 08-Sep-2023 12:46:35

6K+ Views

We will learn to trim white spaces from the input in ReactJS. Sometimes, users add unnecessary space at the start or end of the input by mistake. So, as a developer, we need to check if the input string contains the white space at the start or end. If we find white spaces in the input, we should trim it; Otherwise, it can cause issues. For example, we need to store the email in the database, and while registering the email, the user has also added the white spaces by mistake, and we stored the email in the database with ... Read More

How to update an object with setState in ReactJS?

Rushi Javiya
Updated on 08-Sep-2023 12:44:52

2K+ Views

ReactJS allows us to define a state object for every component. In the state object, we can add the different variables as a property of the state object. After that, we can use the state variables inside the component to render or perform other operations in the component. This tutorial will teach us to create a state object for the component and update it with various values. Use the setState to update the object in ReactJS The state object is used with the class components in ReactJS. Using the setState() method, we can update the state object. Syntax ... Read More

HTML5 Application Cache VS Browser Cache

Yaswanth Varma
Updated on 11-Oct-2023 15:38:56

385 Views

Despite being familiar with the phrase cache, you may not fully understand what it means in the context of the Web. Caching, as used in everyday speech, is the act of storing something in the event that it subsequently proves beneficial. Bulk or main storage can't keep up with client needs, thus cache is used. Cache minimizes latency, speeds up input/output (I/O) activities, and decreases data access times. Let’s look into further for getting better understanding of HTML5 application cache vs browser cache. HTML5 Application Cache A web application is cached and available without an internet connection with the help ... Read More

How to create left positioned icon selects using jQuery Mobile?

Aayush Mohan Sinha
Updated on 07-Sep-2023 17:43:34

133 Views

In the contemporary era of technological advancement, interactive interfaces are becoming a crucial element for web designers and developers to incorporate in their projects. One of the most sought-after features in web development is the ability to create personalized and innovative icon selects. The utilization of jQuery Mobile for the creation of such select icons is a popular and intuitive method. In this article, we will explore the method of creating left-positioned icon selects using jQuery Mobile, a tool that enables developers to produce dynamic and responsive web pages with ease. Getting Started With jQuery Mobile Before we dive ... Read More

How to Create Image Accordion using HTML and CSS?

Aayush Mohan Sinha
Updated on 07-Sep-2023 17:24:04

705 Views

In the domain of web design, discovering groundbreaking methods to exhibit images and other multimedia content is a pivotal facet of developing a captivating user experience. One popular technique that has gained significant traction in recent years is the image accordion, which allows users to easily navigate through a collection of images by expanding and collapsing individual sections. In this article, we will explore the steps required to create an image accordion using HTML and CSS, providing you with a simple yet effective way to enhance the visual appeal of your website. Whether you’re a seasoned web developer or just ... Read More

How to Change the Style of a Tag Title Attribute?

Aayush Mohan Sinha
Updated on 07-Sep-2023 16:49:37

6K+ Views

The title attribute of the tag is a significant facet of web design that furnishes supplementary information about a link when a user hovers over it. Nonetheless, the pre-existing style of the title attribute may not always comply with the visual appeal of a website, compelling designers to investigate ways to personalize it. In this write-up, we will examine various tactics and approaches accessible to adjust the style of the tag title attribute. By the conclusion of this article, you will have a more comprehensive comprehension of how to implement this uncomplicated yet potent modification to enhance the ... Read More

How to create bullets using li elements?

Jaisshree
Updated on 31-Aug-2023 19:19:17

238 Views

The element is used to define list items within an ordered list () or an unordered list (). The element stands for "list item". Bullets are often used only for unordered lists. In HTML, unordered lists are created using the element and each list item is defined using the elements. Syntax ul { list-style-type: disc; } Items… The list-style-type property allows us to specify the type of marker, such as bullets, squares, circles, numbers, or letters, that will be displayed with each element. The default bullet ... Read More

How to create a CSS3 property for each corner?

Jaisshree
Updated on 31-Aug-2023 19:17:52

146 Views

The revolutionary impact of CSS3 on web design cannot be overstated. This modern technology has not only enriched the visual appeal of web pages but also enhanced user engagement. Among the myriad of features that CSS3 offers, the creation of distinctive CSS3 properties for each corner of a web element stands out as a significant breakthrough. To create a CSS property for a corner, we will use 5 different methods using − Border-radius property Individual corner properties Clip path property Mask image property Approach 1 - Using Border-radius Property By utilizing the border-radius property in CSS, one can ... Read More

How to Create Customizable Alerts in JavaScript?

Jaisshree
Updated on 31-Aug-2023 19:13:53

946 Views

It is crucial to remain updated with the most recent knowledge in the fast-paced world of today. Making customizable notifications in JavaScript is one approach to accomplish this. Users may get vital messages catered to their own requirements with customizable alerts. Syntax function Alert(message, alert type) Message parameter gets string as input to be displayed on the alert box. Alert type − the type of message such as error, emergency, etc The Alert type parameter specifies the type of message, such as error, emergency, prompt, etc, that is displayed. Example 1 We will generate an alert message ... Read More

How to create Olympics logo using HTML and CSS?

Nikhilesh Aleti
Updated on 31-Aug-2023 14:52:59

1K+ Views

The given task in this article is to create an Olympics logo using only HTML and CSS. The “Olympic logo” consists of five circles (with five different colors such as blue, black, red, yellow, and green) which are intertwined by equal dimensions. These five colored rings represent the five inhabited continents of the world. These are Africa, the Americas, Asia, Europe, and Oceania. Setting up the Logo Container − We start by creating an element with the class name Olympic-logo. This serves as the container for the Olympic symbol. We set its width, height, background color, position, and ... Read More

Advertisements