23 Program to demonstrate Figure and FigCaption in HTML

Program:
<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>HTML Figure & Figcaption</title>

    <style>

        body{

            font-family: Arial, sans-serif;

        }

    </style>

</head>

<body>



    <!-- HTML Figure & Figcaption Elements -->

    <figure>

        <img src="./logo.png" alt="Logo" style="width:100px;height:100px">

        <figcaption>Fig.1 - Logo.</figcaption>

      </figure>

</body>

</html>


Output:

Figure and FigCaption in HTML

Previous
Next Post »