Html 5 details tag

The <details> tag was introduced in HTML 5.In the html5 <details> tag is used to identify extra details and user can view and hide him style. The <details> tag you can use with join <summary> tag and it provide if you click heading to it increase and decrease your details.

Syntax:

<details> ... </details>

Example Code

<details>
  <p>PHP-Hypertext Preprocessor is a web development dynamic web scripting programing language which can embedded into the HTML and interacts with databases</p>
</details>

Out Put:



PHP-Hypertext Preprocessor is a web development dynamic web scripting programing language which can embedded into the HTML and interacts with databases

In the above example <details> tag has been added to "What is PHP" descriptions.





Content