Install WordPress Locally
In this tutorial, we’ll take a look at WordPress installation on Windows operating system. The following steps cover the installation and configuration of the tools required to run WordPress on Windows.
Step 01 – Download XAMPP and WordPress
In the first step we need to download WordPress and Xampp but before downloading WordPress it’s important to set up an environment the WordPress runs on.
On Windows, we can set the environment with the help of Xampp, Wamp, or Mamp server but in this tutorial, we will be using the Xampp server

Once the download finishes, run it to install XAMPP on your local system. After installation, launch the control panel to view and set the status for Apache, and MySQL.

Starting these two (Apache and MySQL )services is necessary for installing WordPress locally.
Step 02 – Downloading & Installing WordPress
After the successful installation of Xampp Server next step is to Download WordPress from here

after the download next head over to the /htdocs folder in the Xampp directory and unzip the WordPress file
Next, visit the phpMyAdmin portal (http://localhost/phpmyadmin) to create the database for your new WordPress site.

Next after the database creation go ahead and type in your browser
http://localhost/wordpress
Note: the WordPress in the above URL is my folder name inside htdocs it could be anything it totally depends on you

Select the desired language from the dropdown and click Continue

Here enter your Database Name that we have created earlier using PHPMyAdmin and username while it’s localhost so just type root as a username and leave the password empty and click Submit and then on the next Screen click Run the installation
In the next Welcome screen, provide information about your website and set the username and password to access the WordPress dashboard.
Once done, click the ‘Install WordPress’ button. This will show the success message and the button to launch the very well-known WordPress dashboard login page.