Let's modify our example and add a renderer option to see what happens:


The inspector is highlighting the HTML element used to render the map. In this case, that element is the <canvas> element. This element is used for both the WebGL and Canvas renderers. Let's see what happens when we change the renderer.
var map = new ol.Map({
target: 'map',
view: view,
layers: [layer],
renderer: 'dom'
});
Now, we see a lot of <img> elements. By choosing the DOM renderer, we have asked OpenLayers to use a different way of presenting the map in the browser. OpenLayers now creates a new <img> element for each map tile coming from the remote server and positions it next to the others to create the complete map.