HTML Details Tag

The HTML details tag i.e (<details>) element is used to show the detail of information on demand. By default, that detail is hidden. It is used with summary tags, which contains the detail.

General Syntax

      
        <details>
  <summary> </summary>
</details>      
    
Try it now

Source Code

          
            <details>
  <summary>sudhakarinfotech</summary>
  <p>It is one of the world most popular learning platform.</p>
</details>          
        
Try it now

Source Code : Output

sudhakarinfotech

It is one of the world most popular learning platform.

Web Tutorials

HTML Details Tag
Html Tutorial HTML
Javascript Tutorial JAVASCRIPT
Css Tutorial CSS
Bootstrap 5 Tutorial BOOTSTRAP 5
Bootstrap 4 Tutorial BOOTSTRAP 4