Hey, again with new solution with new article, in this article we are going to see how we add node ID class with node type to drupal 8 as like drupal 7 format
{node-type}-node-{node-id}
In drupal 7 above format class displayed on node to differentiate with other nodes, but in drupal 8 by default it was not present so we can achieve this easily using hook_preprocess_html in drupal 8