Sometimes you may need to put some html code in the Homepage of your shopify site. Here I am sharing you the steps and code to create custom html section.

Create home-custom-html.liquid file under section ( screenshot attached )
Paste this code in the newly created home-custom-html.liquid
<div id="section-cta">
<div class="container">
{{ section.settings.text }}
</div>
</div>
{% schema %}
{
"name": "HomePage Custom HTML",
"settings": [
{
"id": "text",
"type": "html",
"label": "Add custom html below",
"default": "<p>Add your text here</p>"
}
],
"presets": [
{
"name": "HomePage Custom HTML",
"category": "Custom HTML"
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}