Website Builder Tool
1. Provide 6 blue buttons for 6 different categories: business, entertainment, general, health, science, sports, technology 2. On click of any buttons replace #### with category name and make a curl request to https://saurav.tech/NewsAPI/top-headlines/category/####/in.json 3. The output of the API is a json object with multiple news items. For each item you can find keys author, title, description, url, urlToImage. 4. Display top six news items. For each new items arrange the output as a card with header as title. Body as description. Subtext as author with url as the click to hyperlink. 5. Open the hyperlink in a new window. 6. The card size should be maximum of col-md-4 on desktop and col-sm-12 on mobile device. multiple cards to be visible side by side. 7. Provide a gap of mt-3 between buttons and the start of cards. 8. Provide a title "News API"
Generate Website