const svg = d3.select("body").append("svg").attr("width", w).attr("height", h).transition().style("fill", "green") code example
Example: html tag convert to d3.select() point
var selection = d3.select(domElement);
// later via the selection you can retrieve the element with .node()
var elt = selection.node();