Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create paragraphs with js in html

var p = document.createElement('p');
p.innerHTML = 'some text here';

document.getElementById('some-parent').appendChild(p);
 
PREVIOUS NEXT
Tagged: #create #paragraphs #js #html
ADD COMMENT
Topic
Name
6+4 =