Articles Tagged WebDev

How to Create Environment Variables Inside next.config.js File and Use them

How to Create Environment Variables Inside next.config.js File and Use them

You can put your environment variables in a next.config.js file
Next.js Highlight Current Page Link – How to Highlight the Active Link in Next.js

Next.js Highlight Current Page Link – How to Highlight the Active Link in Next.js

Learn how to dynamically highlight the active link in your Next.js project navigation for improved user experience
How to View the Page Source of a Website on a Phone

How to View the Page Source of a Website on a Phone

Learn how to view the page source of a website right on your mobile phone

Dec 20, 2022

Image with src "/location.extension" was detected as the Largest Contentful Paint (LCP) [Fixed]

Image with src "/location.extension" was detected as the Largest Contentful Paint (LCP) [Fixed]

Learn how to fix the Largest Contentful Paint warning in Next.js by optimizing image loading with the priority attribute
JavaScript Format Number as Currency – How to Format Currencies in JavaScript

JavaScript Format Number as Currency – How to Format Currencies in JavaScript

You can display currencies without manually attaching currency symbols to numbers in JavaScript
How to Loop Through Arrays in PHP

How to Loop Through Arrays in PHP

Master looping through arrays in PHP using both for and foreach loops to simplify data handling.

Sep 14, 2024

What is Double Colon in PHP? PHP Scope Resolution Operator Explained

What is Double Colon in PHP? PHP Scope Resolution Operator Explained

Unwrap the capabilities of PHP scope resolution operator, Paamayim Nekudotayim, for directly accessing static methods, properties, and constants in classes.

Aug 3, 2024

What is the Difference between a .js and .jsx File in React?

What is the Difference between a .js and .jsx File in React?

A JavaScript and JSX file are not exactly the same thing. There's one notable difference between them you can learn of in this article.

May 23, 2023

What is the HTML Role Attribute?

What is the HTML Role Attribute?

The role attribute is an important aspect of accessibility. Reading more about it in this article.

Dec 23, 2022

Next.js Layout Example – How to Add a Layout to your Next.js Website

Next.js Layout Example – How to Add a Layout to your Next.js Website

Master the technique of adding a unified layout across your Next.js website, featuring consistent headers, footers, and navigation.
The CSS var() Function – How to Create and Use CSS Variables

The CSS var() Function – How to Create and Use CSS Variables

Yes. You can declare and reuse variables in CSS by reading this article.

Dec 28, 2022

Rules and Conventions for Naming Variables in PHP

Rules and Conventions for Naming Variables in PHP

Master the essential rules and best practices for naming variables in PHP to write clean and readable code.

Jun 30, 2024

How to Add the lang Attribute to the Root of your Next JS Website without _document.js

How to Add the lang Attribute to the Root of your Next JS Website without _document.js

Add the lang attribute to the root of your Next JS website without creating a _document.js file
How to Use The JavaScript Intersection Observer API

How to Use The JavaScript Intersection Observer API

Everything you need to know to start using the JavaScript intersection observer API in your projects.
Next JS Data Fetching: How to Fetch Data in a React Server Component

Next JS Data Fetching: How to Fetch Data in a React Server Component

Fetch data in React server components with Next.js for improved performance and SEO optimization
Next JS Routing – How to Implement File-based Routing in Next.js

Next JS Routing – How to Implement File-based Routing in Next.js

Learn how to fix the Largest Contentful Paint warning in Next.js by optimizing image loading with the priority attribute
How to Import a JSON File in JavaScript

How to Import a JSON File in JavaScript

Learn how to import a JSON file in JavaScript, handle common errors, and explore a practical alternative.
PHP String – How to Create a String and Use String Functions

PHP String – How to Create a String and Use String Functions

Master PHP string manipulation with essential rules, creation methods, concatenation techniques, and powerful built-in functions

Jul 14, 2024