Manipulating HTML content using JS

I am able to perform the JavaScript variables program and manipulating the HTML content with

JS.

Please help me out regrading creating of JavaScript programs and including that JS file to HTML document properly. please instruct the steps to get desired output.

Hi @divyanarang97,

Please share your HTML and javascript code and a screenshot of the output. Use the triple backquote to write your code on forum.
```
````

The easiest way to modify the content of an HTML element is by using the innerHTML property.
Example explained:
The HTML document above contains a

element with id=“p1”
We use the HTML DOM to get the element with id=“p1”
A JavaScript changes the content of that element to “New text!”
To know more about this visit at: https://www.cetpainfotech.com