Home >> HTML 5 >> details Tag in HTML 5

details Tag in HTML 5

The <details> tag specifies additional details that the user can open and close.
Note:-The <summary> tag is used to specify a visible heading for the details.

For example:-

<!DOCTYPE html>
<html>
<head>
   <title>Details Tag</title>
</head>
<body>
  <details>
     <summary>India</summary>
     <p>India is a good country.</p>
  </details>
</body>
</html>

Post Your Comment

Next Questions
dfn Tag
dialog Tag
dir Tag
div Tag
dl Tag
dt Tag
em Tag
embed Tag
fieldset Tag
figcaption Tag
figure Tag
font Tag
footer Tag
form Tag
frame Tag
frameset Tag
Heading Tag
head Tag
header Tag
hr Tag
html Tag
i Tag
iframe Tag
img Tag
input Tag

Copyright ©2022 coderraj.com. All Rights Reserved.