Computer >> Computer tutorials >  >> Programming >> HTML

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


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>