Skip to content

Client-side rendering

Client-side rendering

Client-side Rendering happens when an HTML file runs JavaScript code in the browser in order to generate and append more HTML to the current page.

Advantages:

Disadvantages:

Example:

<html>
<head></head>
<body>
  <script>
    const p = document.createElement("p");
    p.innerText = "Hello, world!";
    
    document.body.appendChild(p);
  </script>
</body>
</html>