---
title: "Discussion on \"Generating HTML in Javascript\" | Hashnode"
description: "Discussion on \"Generating HTML in Javascript\". There are many ways to generate HTML in Javascript. I will discuss two out of it.\n\nUsing createElement() method\n\nUsing insertAdjacentHTML method\n 1. creating elements and append it\n\n\nIn this method an HTML element is created by using createElement() ..."
url: "https://hashnode.com/posts/generating-html-in-javascript/6421c3f7d64d330493d4e825"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Generating HTML in Javascript](https://zubairatd.hashnode.dev/generating-html-in-javascript?utm_source=hashnode&utm_medium=feed)

There are many ways to generate HTML in Javascript. I will discuss two out of it. Using createElement() method Using insertAdjacentHTML method 1. creating elements and append it In this method an HTML element is created by using createElement() ...

Mar 27, 2023 · 2 min read · zubairatd.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Zubair Ahmad](https://hashnode.com/@ZubairAtd)

@ZubairAtd · Pakistan.

  
[View profile](https://hashnode.com/@ZubairAtd)

Web Developer.

I am web developer from Pakistan.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
