A modern and responsive News Web Application built using HTML, CSS, JavaScript, Bootstrap, and NewsAPI. The application allows users to search for the latest news and read complete articles from their original sources.
- 🔎 Search news by keyword
- 📰 Display multiple news articles dynamically
- 🖼️ News images with fallback support
- 📄 News title and description
- 🔗 Read complete articles from the original source
- 📱 Fully responsive design
- 💻 Mobile, tablet, and desktop support
- ✨ Modern card-based UI
- 🎨 Bootstrap styling
- ⚡ Dynamic content rendering using JavaScript
- 🛡️ Error handling for missing images and descriptions
- HTML5 – Website structure
- CSS3 – Custom styling and responsive design
- JavaScript (ES6+) – API integration and dynamic content
- Bootstrap 5 – Responsive UI components
- Font Awesome – Icons
- NewsAPI – Fetching news articles
News-app/
│
├── index.html
├── app.js
├── README.md
- The user enters a keyword in the search bar.
- JavaScript sends a request to the NewsAPI.
- The API returns relevant news articles.
- JavaScript processes the returned data.
- News articles are dynamically displayed as responsive cards.
- Users can click Read More to visit the original news article.
This project uses NewsAPI to fetch news data.
Create an account on NewsAPI and obtain your API key.
Then add your API key to the API request in app.js:
const API_KEY = "YOUR_API_KEY";
const url = `https://newsapi.org/v2/everything?q=${query}&language=en&sortBy=publishedAt&pageSize=20&apiKey=${API_KEY}`;git clone https://github.com/Wasayullah/News-app.gitNavigate to the project folder:
cd News-appOpen app.js and replace:
YOUR_API_KEY
with your NewsAPI key.
Use Live Server in Visual Studio Code or create a local server in python using the command >> python -m http.server 8080. The free version of News API donot work in developer mode it can only used with a local server
The application provides a clean and responsive interface where users can search for news and browse articles through modern news cards.
- 🌙 Dark mode
- 📚 Category-based news filtering
- 🌍 Country selection
- ⏳ Loading animations
⚠️ Better API error messages- 📄 Pagination / Load More functionality
- 🔖 Save favorite articles
- 🕒 Display publication date and time
- 📰 Display news source and author
- 🔐 Secure API key using a backend
- 📱 Progressive Web App (PWA) support
Web & App Developer
Passionate about web development, JavaScript, APIs, and building modern applications.
This project is created for educational and learning purposes.
© 2026 M549 News. All rights reserved.