24 Program to demonstrate Details and Summary Element in HTML

Program:
<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>HTML Details & Summary</title>

    <style>

        body{

            font-family: Arial, sans-serif;

        }

    </style>

</head>

<body>



    <!-- HTML Details & Summary Elements -->

    <details>

        <summary>Epcot Center</summary>

        <p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>

      </details>

</body>

</html>


Output:

Details and Summary Element in HTML

Previous
Next Post »