Create a hidden paragraph in HTML5

HTMLWeb DevelopmentFront End Technology

Use the hidden attribute in HTML5 to create a hidden paragraph in HTML5 i.e. an element no longer relevant.

Example

You can try to run the following code to implement hidden attribute in HTML5 −

<!DOCTYPE html>
<html>
   <body>
      <h2>Heading</h2>
      <p>This is a demo paragraph and visible.</p>
      <p hidden>This is a demo paragraph and hidden.</p>
   </body>
</html>
raja
Published on 13-Mar-2018 12:45:12

Advertisements