0

Can we use tags in js

I wanted to know that is it possible to use some html tags like <b> in a js file to make works easier

27th Apr 2019, 12:48 PM
Mohammadreza
Mohammadreza - avatar
2 Respostas
+ 2
you can add html by using document.write("html"); Alternatively you can always create nodes by using let newNode = document.createElement("tag_name"); and add them by using htmlNode.appendChild(newNode);
27th Apr 2019, 1:19 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
0
Thanks
27th Apr 2019, 4:51 PM
Mohammadreza
Mohammadreza - avatar