This step installs WordPress into a local directory. You need to have already downloaded and installed XAMPP.
1. Open File Explorer and find C:\XAMPP\htdocs. This folder will hold your website files.
2. Create a new subfolder in \htdocs that will contain your local website files (for example, C:\XAMPP\htdocs\my-first-website).
3. Open your web browser and go to https://wordpress.org.
4. Click Get WordPress and download the latest version (5.0.3 at the creation of this guide).
5. Extract the zip files into your new subfolder. Once extracted, you should see a WordPress folder within your website subfolder like this: C:\XAMPP\htdocs\my-first-website\wordpress.
Note:
We recommend extracting the zip files into a subfolder in \htdocs so that you can have multiple WordPress installations and websites in your local environment (e.g. localhost/my-first-website and localhost/my-second-website).
If you are certain that you will only ever have one website, you can extract the files directly into \htdocs.