The hidden Attribute

The hidden attribute is a boolean attribute. It can hide an element.

      var toggleHidden = function() {
            var elem = document.getElementById("toggle");
            if (elem.hasAttribute("hidden")) {
            } else {
                  elem.setAttribute("hidden", "hidden");
      <button onclick="toggleHidden()">Toggle</button>
                  <td>James Bond</td>
            <tr id="toggle" hidden>
                  <td>Joe Smith</td>
                  <td>New York</td>
                  <td>Boud Jones</td>
  HTML CSS Book 

HTML5 Global Attributes:
  1. The accesskey Attribute
  2. The class Attribute
  3. The contenteditable Attribute
  4. The contextmenu Attribute
  5. The dir Attribute
  6. The draggable Attribute
  7. The dropzone Attribute
  8. The hidden Attribute
  9. The id Attribute
  10. The lang Attribute
  11. The spellcheck Attribute
  12. The style Attribute
  13. The tabindex Attribute
  14. The title Attribute