Node Body Class module is used to add node ID (nid) and custom node type as a class to tag on node pages.https://www.drupal.org/project/node_body_class