A random quote generator that fetches a new inspirational quote (with author) at the click of a button.
- Fetches a random quote and its author from the DummyJSON Quotes API
- Generate Quote button to fetch a new quote on demand
- Copy Quote button to copy the current quote to your clipboard, with visual confirmation ("Copied!")
- Loading state while a quote is being fetched
- Graceful error handling if the fetch fails
- HTML5
- CSS3
- JavaScript (Vanilla) with the Fetch API and Clipboard API
- Clone or download this folder.
- Open
index.htmlin your browser (requires an internet connection). - Click Generate Quote to fetch a random quote, and Copy Quote to copy it to your clipboard.
Quote_Generator/
├── index.html
├── style.css
└── script.js