Best matchAmine Pics Generator
Request live data and turn the response into useful page content.
Build an amine pics generator →Build a random quote generator with HTML, CSS, and JavaScript while practicing API requests and async and await.
In this project, we’re going to build a random quote generator using HTML, CSS, and JavaScript. You’ll see how to generate a fresh result and update the interface instantly. Along the way, you’ll practice API requests, async and await, and click events, so you can understand how the interface and JavaScript logic work together.
Recommended knowledge: Basic HTML and CSS, JavaScript functions and arrays, Promises and the Fetch API, JavaScript variables and number operations.
This project connects the interface to live API results.
index.html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Random Quote Generator</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1 class="heading">Random Quote Generator</h1>
<h2 class="quote">
<i class="fa-solid fa-quote-left"></i>
<span id="quote">Quote</span>
<i class="fa-solid fa-quote-right"></i>
</h2>
<p class="author" id="author">~ Author</p>
<button class="btn" id="btn">Get a quote</button>
</div>
<script src="index.js"></script>
</body>
</html>
Practice API requests, async/await, and javaScript calculations with these related projects.
Best matchRequest live data and turn the response into useful page content.
Build an amine pics generator →
Handle asynchronous results and update the interface when they arrive.
Build a dad jokes generator →
Request and render a randomly selected emoji.
Build a random emoji →
Request live data and turn the response into useful page content.
Build an amine pics generator
Handle asynchronous results and update the interface when they arrive.
Build a dad jokes generator
Request and render a randomly selected emoji.
Build a random emoji