You need to know CSS and HTML for this topic.
Today's most common way to create a template is using div tag. Basically you define a container "division" that is the main division that includes the other container inside it. Then we add others respected to our design to its inside. Do not forget to give id or class name to each division to be specified for CSS. (Like as in the figure.)
Example HTML for such template;
But it is not enough to have this HTML code, also we need to use some CSS to define our divisions' width and height.