details open Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:details

Description

The open attribute is a boolean attribute to set if the details should be open to the user.

In XHTML, the open attribute must be defined as <details open="open">.

An open/visible <details> element:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<details open>
  <summary>Copyright 1999-2014.</summary>
  <p> - by java2s.com Data. All Rights Reserved.</p>
  <p>All content and graphics on this web site are the property of the company java2s.com Data.</p>
</details><!--from ww w . j  a  v a 2s. c om-->

</body>
</html>

Related Tutorials