How to specify that an element is not yet relevant in HTML?

HTMLWeb DevelopmentFront End Technology

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


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

<!DOCTYPE html>

      <p>This is a demo paragraph and visible.</p>
      <p hidden>This is a demo paragraph and hidden.</p>

Published on 14-Mar-2018 08:04:32