<p>The Earth, home to humanity, is beautiful.</p>
<figure>
    <img src="earth.jpg" alt="Earth glowing blue from space">
</figure>
Rendered Output
<p>The Earth, home to humanity, is beautiful.</p>
<figure>
    <img src="earth.jpg" alt="Earth glowing blue from space">
    <figcaption>Earth viewed from space</figcaption>
</figure>
figcaption {
    background-color: #d1d1d1;
    text-align: center;
    padding: 4px;
}
Rendered Output
<p>The Earth, home to humanity, is beautiful.</p>
<figure></figure>
figure {
    background-image: url("earth.jpg");
}
Rendered Output
<p>The Earth, home to humanity, is beautiful.</p>
<figure>
    <video src="earth.mp4" muted autoplay playsinline loop></video>
</figure>
<p>The typeof operator returns the data type of its operand as a string.</p>
<figure>
    <figcaption>Basic example of the typeof operator</figcaption>
    <pre>
        <code>
            let a;
            console.log(typeof a); // Output: "undefined"
        </code>
    </pre>
</figure>
Rendered Output