How to specify that the details should be visible to the user in HTML?

HTMLWeb DevelopmentFront End Technology

Use the open attribute to specify that the details should be visible to the user. You can try to run the following code to implement novalidate attribute −

Example

<!DOCTYPE html>
<html>
   <head>
      <title>HTML open attribute</title>
   </head>
   <body>
      <details open>
         <summary>Some More Information</summary>
         <p>Providing more info about the details here.</p>
      </details>
   </body>
</html>
raja
Published on 14-Mar-2018 14:31:59
Advertisements