I am trying to have my JavaScript print a variable along with some text, I have an example(it doesn’t work, I think...):
CSS
.container { border: 2px solid #dedede; background-color: #f1f1f1; border-radius: 5px; padding: 10px; margin: 10px 0; } @font-face { font-family: Superfont; src: url(Suplexmentary_Comic_NC.ttf); } .name{ font-size: 6px; border-style: solid; border-color: red; } .message{ font-family: Superfont; } Java
let addthistext = "hi" document.getElementById("parentID").appendChild(<div class="container"> <p class="name">member</P> <p class="message">text</p> </div>) Could you try coming up with an answer?