Well, now you have gone through the SOURCE Element in the previous chapter. In this chapter we will learn about the SUMMARY Element, which is a child element of DETAILS Element.
Here is the Syntax for SOURCE Element
<summary> The default content will go here </summary>
Below is complete syntax along with example
<!DOCTYPE html> <html> <head> <title>Title name will go here</title> </head> <body> <details> <summary> This is the default content. </summary> <p>This is the main content, which will be shown.</p> </details> </body> </html>