如何指定细节应在HTML中对用户可见?

使用open 属性来指定细节对于用户应该是可见的。您可以尝试运行以下代码以实现novalidate 属性-

示例

<!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>