Best matchDad Jokes Generator
Request live data and turn the response into useful page content.
Build a dad jokes generator →Build an amine pics generator with HTML, CSS, and JavaScript while practicing API requests and async and await.
In this project, we’re going to build an amine pics 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>Anime Pics Generator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h3>Anime Pics Generator</h1>
<button class="btn" id="btn">Get Anime</button>
<div class="anime-container">
<img class="anime-img" src="https://c.files.bbci.co.uk/F382/production/_123883326_852a3a31-69d7-4849-81c7-8087bf630251.jpg">
<h3 class="anime-name">Anime Name</h3>
</div>
</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 a dad jokes generator →
Request and render a randomly selected emoji.
Build a random emoji →
Turn JavaScript calculations into clear visual results.
Build a random quote generator →
Request live data and turn the response into useful page content.
Build a dad jokes generator
Request and render a randomly selected emoji.
Build a random emoji
Turn JavaScript calculations into clear visual results.
Build a random quote generator