Open In App

What is the use of the “no-js” class in HTML ?

Purpose:

Syntax:

<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->

Example:




<!DOCTYPE html>
<html class="no-js">
  
<head>
    <script>document.documentElement.className
        = document.documentElement.className
        .replace(/\bno-js\b/g, '') + ' js ';
    </script>
  
    <!-- Other files and libraries
        to be included -->
    <head>
  
    <body>
        <center>
            <h1>GeeksforGeeks</h1>
        </center>
    </body>
  
</html>

Output:

Article Tags :