crop_rotate
Run
<!DOCTYPE html> <html> <head> <title>JavaScript appendChild() Method</title> <style> </style> </head> <body> <h1>CloseTag</h1> <h2>JavaScript appendChild() Method</h2> <ul id="languages"> <li>Python</li> <li>Java</li> <li>Data Structure</li> </ul> <button onclick="append()">Append</button> <script> function append() { var node = document.createElement("LI"); var textnode = document.createTextNode("C#"); node.appendChild(textnode); document.getElementById("languages").appendChild(node); } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+ICANCjxodG1sPiAgDQo8aGVhZD4gIA0KICAgIDx0aXRsZT5KYXZhU2NyaXB0IGFwcGVuZENoaWxkKCkgTWV0aG9kPC90aXRsZT4gIA0KICAgIDxzdHlsZT4gIA0KICAgIDwvc3R5bGU+ICANCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+IDo6LXdlYmtpdC1zY3JvbGxiYXJ7d2lkdGg6N3B4O2hlaWdodDo3cHg7fTo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2t7YmFja2dyb3VuZDojZmZmO306Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1ie2JvcmRlci1yYWRpdXM6NXB4O2JhY2tncm91bmQ6IzJmNDVmZjt9PC9zdHlsZT48L2hlYWQ+ICAgDQo8Ym9keT4gIA0KICAgIDxoMT5DbG9zZVRhZzwvaDE+ICANCiAgICA8aDI+SmF2YVNjcmlwdCBhcHBlbmRDaGlsZCgpIE1ldGhvZDwvaDI+ICANCiAgICA8dWwgaWQ9Imxhbmd1YWdlcyI+ICANCiAgICAgICAgPGxpPlB5dGhvbjwvbGk+ICANCiAgICAgICAgPGxpPkphdmE8L2xpPiAgDQogICAgPGxpPkRhdGEgU3RydWN0dXJlPC9saT4gIA0KICAgIDwvdWw+ICANCiAgICA8YnV0dG9uIG9uY2xpY2s9ImFwcGVuZCgpIj5BcHBlbmQ8L2J1dHRvbj4gIA0KICAgIDxzY3JpcHQ+ICANCiAgICAgICAgZnVuY3Rpb24gYXBwZW5kKCkgeyAgDQogICAgICAgICAgICB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