Skip to content

A news website built with HTML, CSS and JavaScript that allows searching articles by keyword or browsing by category. Features a clean responsive layout and displays article titles, descriptions, images and links. Uses the NewsAPI to fetch top headlines and articles on a variety of topics.

License

Notifications You must be signed in to change notification settings

cjstyles6/News-Website

Repository files navigation

News Website

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:

  1. Clone the repository
  2. Open index.html in your browser
  3. Search for articles using a keyword or click on a category
  4. 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

About

A news website built with HTML, CSS and JavaScript that allows searching articles by keyword or browsing by category. Features a clean responsive layout and displays article titles, descriptions, images and links. Uses the NewsAPI to fetch top headlines and articles on a variety of topics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published