HTML Element Interpolation with Pug

Tutorial Difficulty Level    

Further to our previous tutorial, sometimes it may be necessary to nest HTML tags inside of each other. Element interpolation with Pug is done in a syntax similar to variable interpolation; square brackets instead of curly braces are used here.

The syntax of interpolated HTML elements is identical to the implementation of normal HTML elements.