Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Creating Multi-line String with Template Literals in JavaScript</title> <script> // Creating multi-line string var str = `<div class="content"> <h1>This is a heading</h1> <p>This is a paragraph of text.</p> </div>`; // Printing the string document.write(str); </script> </head> <body> <!-- Content will be inserted here --> </body> </html>