This repository contains a web application that allows users to search for details about different countries using their names. Users can enter a country name in the search box, and the application fetches details such as the country's capital, continent, population, currency, and common languages.
- Allows users to search for country details using their names.
- Fetches data from the REST Countries API.
- Displays information including the country's flag, capital, continent, population, currency, and common languages.
- Provides error messages for invalid inputs or failed requests.
- Utilizes HTML, CSS, and JavaScript for functionality.
- HTML: Markup language for structuring the web page.
- CSS: Stylesheet language for enhancing the presentation of the web page.
- JavaScript: Programming language for implementing dynamic behavior.
- REST Countries API: API for fetching country-related data.
- Clone the repository to your local machine.
- Open the
index.htmlfile in your web browser. - Enter a country name in the search box.
- Click the "Search" button to fetch and display details about the entered country.
- View information such as the country's flag, capital, continent, population, currency, and common languages.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create your feature branch:
git checkout -b feature/NewFeature. - Commit your changes:
git commit -am 'Add a new feature'. - Push to the branch:
git push origin feature/NewFeature. - Submit a pull request detailing your changes.
This project is licensed under the MIT License, which means you are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software.
- This project utilizes the REST Countries API for fetching country-related data.
- Created for learning and demonstration purposes.