English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This article introduces the HTML details open attribute, a boolean attribute, with an online example demonstrating how to use the HTML details open attribute, browser compatibility, syntax definition, and detailed information about its attribute values.
An Open/Visible <details> Element:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <details> open Attribute Usage-Basic Tutorial(oldtoolbag.com)/title> </head> <body> <details open> <summary>Copyright 2009-2020.</summary> <p> - by oldtoolbag.com. All Rights Reserved./p> <p>Basic Tutorial Website provides IT basic tutorial learning resources, as well as basic knowledge. Learn the basics well, and you can go further.</p> </details> <p>details default open.</p> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
Currently only Chrome and Safari 6Supports the open attribute.
The open attribute is a boolean (boolean) attribute.
The open attribute specifies that the details should be visible on the HTML page.
<details> tag is HTML5 New tags.
In XHTML, attributes are not allowed to be abbreviated, the open attribute must be defined as: <details open="open">.
<details open>