# Problem building pages from scratch

**URL:** <https://community.hubspot.com/t/problem-building-pages-from-scratch/36079>\
**Category:** CMS Development\
**Created:** [April 23, 2021, 4:11pm UTC](https://community.hubspot.com/t/problem-building-pages-from-scratch/36079 "2021-04-23T16:11:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHugo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chugo/32/31851_2.png) [@CHugo](https://community.hubspot.com/u/CHugo)\
**Post date:** [April 23, 2021, 4:11pm UTC](https://community.hubspot.com/t/problem-building-pages-from-scratch/36079/1 "2021-04-23T16:11:11Z")

</div>

Hello,

I wanted to make a site from scratch in Hubspot, so I didnt use any template.

The problem I ama having is that I can not add the dnd area,

here my code:

\<!--

templateType: none

--\>

\<!doctype html\>

\<html lang=“{{ html\_lang }}” {{ html\_lang\_dir }}\>

\<head\>

```
\<meta charset="utf-8">

{{ require\_css(get\_asset\_url("/RLK-BLANK-THEME/css/main.css")) }}

{% if page\_meta.html\_title %}\<title>{{ page\_meta.html\_title }}\</title>{% endif %}

\<meta name="description" content="{{ content.meta_description }}">

{% if site\_settings.favicon\_src %}\<link rel="shortcut icon" href="{{ site_settings.favicon_src }}" />{% endif %}

\<link rel="preconnect" href="https://fonts.gstatic.com">

\<link href="https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700&display=swap" rel="stylesheet">

\<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Ubuntu:wght@300;500&display=swap" rel="stylesheet">

{{ standard\_header\_includes }}

```

\</head\>

\<body\>

```
{% block header %}

  {% global\_partial path='/RLK-BLANK-THEME/partials/header.html' %}

{% endblock header %}

{% block body %}

{% dnd\_area "no\_structure", label="No Structure" %}

{% end\_dnd\_area %}

{% endblock body %}

{% block footer %}

  {% global\_partial path='/RLK-BLANK-THEME/partials/footer.html' %}

{% endblock footer %}

{{ standard\_footer\_includes }}

```

\</body\>

\</html\>

 ![41522i85F5AD02570AA759.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/e/9e50d5e483060c251fc7689fb070972d8a9c1f86.png)

I’ve just wanted to give some géneral guidelines from the html and css file and then make the structure of the page with the drag and drop function.

thank you

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [April 26, 2021, 11:52am UTC](https://community.hubspot.com/t/problem-building-pages-from-scratch/36079/2 "2021-04-26T11:52:29Z")

</div>

Hi @CHugo ,  
Try this code:

\<!--  
templateType: page  
isAvailableForNewContent: true  
label: Home  
screenshotPath: ../images/template-previews/home.png  
--\>  
{% extends “./layouts/base.html” %}{% block body %}  
{# The main-content ID is used for the navigation skipper in the header.html file. More information on the navigation skipper can be found here: [Accessibility · HubSpot/cms-theme-boilerplate Wiki · GitHub](https://github.com/HubSpot/cms-theme-boilerplate/wiki/Accessibility) #}  
\<main id=“main-content” class=“body-container-wrapper”\>  
{# All templates are recommended to have an h1 present for both accessibility and SEO best practice. This should be at the top of the template before any other textual content. The h1 element below is within a dnd area to allow content editors the ability to adjust the content and alignment of the text. #}  
{% dnd\_area ‘dnd\_area’ class=‘body-container body-container--home’, label=‘Main section’ %} {# Form section #}  
{% dnd\_section  
background\_color={  
r: 248,  
g: 250,  
b: 252,  
a: 1  
},  
vertical\_alignment=‘MIDDLE’  
%}  
{% dnd\_module path=‘@hubspot/image’,  
img={  
‘alt’: ‘Stock placeholder image with grayscale geometrical mountain landscape’,  
‘size\_type’: ‘auto’,  
‘src’: get\_asset\_url(‘../images/grayscale-mountain.png’)  
},  
offset=0,  
width=6  
%}  
{% end\_dnd\_module %}  
{% dnd\_column  
offset=6,  
width=6  
%}  
{% dnd\_row %}  
{% dnd\_module path=‘@hubspot/rich\_text’%}  
{% module\_attribute ‘html’ %}  
\<h1\>This is your main headline.\</h1\>  
\<p\>Use this space to tell everyone about what you have to offer.\</p\>  
{% end\_module\_attribute %}  
{% end\_dnd\_module %}  
{% end\_dnd\_row %}  
{% dnd\_row %}  
{% dnd\_module path=‘@hubspot/form’ %}  
{% end\_dnd\_module %}  
{% end\_dnd\_row %}  
{% end\_dnd\_column %}  
{% end\_dnd\_section %}  
{# End form section #} {# Two column image right section #}  
{% dnd\_section  
vertical\_alignment=‘MIDDLE’  
%}  
{% dnd\_module path=‘@hubspot/rich\_text’,  
offset=0,  
width=6  
%}  
{% module\_attribute ‘html’ %}  
\<h2\>Provide more details here.\</h2\>  
\<p\>Use text and images to tell your company’s story. Explain what makes your product or service extraordinary.\</p\>  
{% end\_module\_attribute %}  
{% end\_dnd\_module %}  
{% dnd\_module path=‘@hubspot/image’,  
img={  
‘alt’: ‘Stock placeholder image with grayscale geometrical mountain landscape’,  
‘size\_type’: ‘auto’,  
‘src’: get\_asset\_url(‘../images/grayscale-mountain.png’)  
},  
offset=6,  
width=6  
%}  
{% end\_dnd\_module %}  
{% end\_dnd\_section %}  
{# End two column image right section #} {# Two column image left section #}  
{% dnd\_section  
background\_color={  
r: 248,  
g: 250,  
b: 252,  
a: 1  
},  
vertical\_alignment=‘MIDDLE’  
%}  
{% dnd\_module path=‘@hubspot/image’,  
img={  
‘alt’: ‘Stock placeholder image with grayscale geometrical mountain landscape’,  
‘size\_type’: ‘auto’,  
‘src’: get\_asset\_url(‘../images/grayscale-mountain.png’)  
},  
offset=0,  
width=6  
%}  
{% end\_dnd\_module %}  
{% dnd\_module path=‘@hubspot/rich\_text’,  
offset=6,  
width=6  
%}  
{% module\_attribute ‘html’ %}  
\<h2\>Provide more details here.\</h2\>  
\<p\>Use text and images to tell your company’s story. Explain what makes your product or service extraordinary.\</p\>  
{% end\_module\_attribute %}  
{% end\_dnd\_module %}  
{% end\_dnd\_section %}  
{# End two column image left section #} {% end\_dnd\_area %}  
\</main\>  
{% endblock body %}

Hope this helps!  
If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![CHugo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chugo/32/31851_2.png) [@CHugo](https://community.hubspot.com/u/CHugo)\
**Post date:** [April 26, 2021, 1:51pm UTC](https://community.hubspot.com/t/problem-building-pages-from-scratch/36079/3 "2021-04-26T13:51:37Z")

</div>

Thank you, it works 🙂
