<html>
<head>
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body></body>
<script>
d3.select("body") // Selected the BODY
.append("div") // Create the DIV and it is the selection
.style("background-color","red") //Change the DIV style
.append("span") // Append the SPAN inside the DIV and select
.style("color","green") //Change the text color of the SPAN
.text("hi"); // Change the text of the SPAN
</script>
</html>
// Code goes here
/* Styles go here */