This is a news website built with HTML, CSS, and JavaScript. It allows users to search for and view top news articles by keyword or category.
Features
- Search articles by keyword
- Browse articles by category (business, entertainment, health, science, technology)
- Clean and responsive layout built with Tailwind CSS
- Display article title, description, author, image, and link
- Default placeholder image if article image is missing
- Mobile friendly responsive design
Usage
To use the news website:
- Clone the repository
- Open index.html in your browser
- Search for articles using a keyword or click on a category
- Browse the results displayed from the NewsAPI
Customization
The NewsAPI key is required for fetching news data. You can sign up for a free developer account to obtain an API key.
The categories and styling can be customized by modifying the CSS and JavaScript files.
Built With
- HTML
- Tailwind CSS
- JavaScript
- NewsAPI