How do I assign my elements to a specific div


Thanks for helping. Here is my code:

var data;

function preload() {
 data = loadJSON("json.json");  

function setup() {
  // var overdenking = data.Articles[1].Title;

  var overdenking = data.Articles;

  for (var i = 0; i < overdenking.length; i++){
    createElement('h1', overdenking[i].Title);
    createElement('p', overdenking[i].Date);


Right now, it just loads on the page, I assume on the body tag. I would like it to load in a div, the p5Container div, if possible. Do I do this with data.parent('p5Container');? If so, where should it be placed because I tried everywhere.



Sign In or Register to comment.